temperature decreases with increasing height how

Why does the temperature start decreasing when we go up, why does it start feeling cold? Know interesting science facts

We can see the sun in the sky, then why does the temperature start decreasing…