The temperature of the sun varies between each layer of the atmosphere.