How does altitude affect temperature?

Within the troposphere temperature decreases with increasing altitude.