There are three types of rocks according to how they get formed. Igneous rocks come from the Earth's interior as lava and erupt out of a volcano, getting cold and solidifying when get in touch with air.
According to how they get formed, we can mention three different main types of rocks,
These rocks come straight from the interior of the Earth.
A liquid mass of silicate composition coming from the Earth's core erupts out of a volcano as lava.
Since this melted mass comes from the Earth's interior, its temperature is extremely high.
Lava begins to cool and solidify during its ascent to the Earth's surface.
Igneous rocks are produced by the cooling of magma when they get in touch with air.
Thre are two types of igneous rocks
You can learn more about igneous rocks at
https://brainly.com/question/11894862
https://brainly.com/question/4960815
https://brainly.com/question/6073070