Sedimentary rocks are formed when sediment is deposited out of air, ice, wind, gravity, or water flows carrying the particles in suspension. This sediment is often formed when weathering and erosion break down a rock into loose material in a source area
METAMORPHIC ROCKS form from other rocks that are changed because of heat or pressure.
Igneous rock is formed through the cooling and solidification of magma or lava. Igneous rock may form with or without crystallization, either below the surface as intrusive (plutonic) rocks or on the surface as extrusive (volcanic)rocks.
Also, u may want to reword what I said because I literally searched the answer up and copied and pasted. don't plagiarize ;) lol