Need some help to write a program that uses a loop to display the number of calories burned after running on a treadmill for 10, 15, 20, 25, and 30 minutes. Running on a treadmill burns 3.9 calories per minute.
Need some help to write a program that uses a loop to display the number of calories burned after
running on a treadmill for 10, 15, 20, 25, and 30 minutes. Running on a treadmill burns 3.9 calories per minute.
Sample Output from Program:
39.0 calories were burned after 10 minutes.
58.5 calories were burned after 15 minutes.
78.0 calories were burned after 20 minutes.
97.5 calories were burned after 25 minutes.
117.0 calories were burned after 30 minutes.
Press any key to continue….
Using the pseudocode below, write the code that will meet the requirements.
Display program information
Declare variables
For i=10 to 30 step 5
Print i*calories
End for