human
What are the three types of rocks?
assistant
The three types of rocks are igneous, sedimentary and metamorphic. Igneous rocks are formed when molten magma cools quickly in a volcanic eruption or when water is trapped underground and freezes. Sedimentary rocks are made up of particles that have been deposited over time, such as sandstone, limestone, and shale. Metamorphic rocks are rocks that have been changed by heat and pressure deep within the earth's crust.