X1195: Codewit Jason: Energy conservation with while loops in C++

Write a program that prompts the user:

"How many degrees is it inside today? "

and then starting at that number entered, displays the temperature (on its own line) as long as the current temperature is 75 degrees or higher. After displaying the current temperature, it should decrease by 1 degree.

If it has decreased below 75 degrees, it should not show the temperature and should then display:

"It is cool inside now, the AC is turning off. "

followed by an endline.

Complete the code within the brackets ({ }) below.

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.