Final answer:
The stratosphere and thermosphere increase in temperature with altitude, while the troposphere and mesosphere decrease in temperature.
Step-by-step explanation:
The two atmospheric layers that increase in temperature with altitude are the stratosphere and the thermosphere.
The stratosphere is the second layer of the atmosphere and is located above the troposphere. It contains the ozone layer, which absorbs the Sun's ultraviolet radiation and causes the temperature to increase with height.
The thermosphere is the outermost layer of the atmosphere. Even though it is very high in altitude, the temperature increases due to the absorption of solar radiation by ions and highly energized particles. This makes it one of the hottest layers in the atmosphere.
The two atmospheric layers that decrease in temperature with altitude are the troposphere and the mesosphere. The troposphere is the lowest layer and is where weather occurs. As you go higher in the troposphere, the temperature drops. The mesosphere is above the stratosphere and is the coldest layer of the atmosphere. The temperature decreases with increasing altitude in this layer.