Dear Student,
Igneous Rocks- Rocks formed by the cooling of magma inside the Earth or on the surface.
Sedimentary rocks- Rocks formed from the products of weathering by precipitation on the Earth's surface.
Metamorphic rocks- Rocks formed by temperature and pressure changes inside the Earth.
Regards