Igneous rocks originate from magma or lava, while sedimentary rocks form from sediment accumulation, and metamorphic rocks are altered by heat and pressure.
Igneous rocks are formed from the cooling and solidification of magma or lava. Examples include basalt, gabbro, diorite, and granite. Sedimentary rocks like limestone and sandstone are formed from the accumulation and solidification of sediments, while metamorphic rocks like marble and schist are rocks transformed by heat and pressure.
https://brainly.com/question/39730069