Answer: 
Both temperature and pressure increase as you get closer to the Earth's centre. 
Explanation: 
The pressure increases as you go deeper because there is always more weight from above. 
The pressure goes from 1 atm at the surface to 3.5 × 10⁶ atm in the core. 
The core is hot because of
- residual heat from when the Earth was formed
- the energy released by decay of radioactive elements. 
Here’s a table of approximate temperatures in the various layers. 
 Layer  T/°C 
Crust 300 
Upper mantle 1300 
Lower mantle 3300 
Outer core 4500 
Inner core 6000