Answer:
Basically the Earth is layered because of gravity. The earth formed in the molten state. The liquid iron which is very dense fell to the center.
Explanation: