Igneous rocks and Sedimentary rocks both are both created under very hot temperature.
Igneous rocks are formed by the cooling of magma(molten rock) inside the Earth or on the surface while Sedimentary rocks are formed from the products of weathering by cementation or precipitation on the Earth's surface.
Differences and similarities between igneous , metamorphic , and sedimentary rocks . sedimentary rocks are formed by weathered sediment using cementation or precipitation on Earth's surface . Metamorphic rocks are formed by changes of pressure and temperature within Earth's surface .