Question: Goal: Use a for loop to perform a repetitive action Assignment: At the city zoo, the temperatures in a desertic exhibition rise from 1 3

Goal: Use a for loop to perform a repetitive action
Assignment: At the city zoo, the temperatures in a desertic exhibition rise from 13 degrees Celsius in January to 28 degrees Celsius in June. That corresponds to an average increase of 3 degrees Celsius each month, for six months. Write a for loop that displays the temperature for each of these six months, starting at 13 degrees and ending at 28 degrees. The loop should print each temperature on a separate line.
Note: Only write the lines to create a loop and print out the necessary amount of characters.
Reference: This assignment is based on the data provided by MeteoBlue.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!