Depending on the weather and weight, a C172 is impossible to keep in the air with 40°
I disagree. Unless the aircraft is being opereated with a baffed out engine, or overweight, It will fly and climb in accordance with the design requirements to do so, which include a "balked landing" full flap climb. I have flown several Cessnas to maintenance with flaps fully or partly extended, with no problems.