The treadmill promises that you will burn 3.9 calories each minute.
Write a program that uses a loop to display the number of calories burned after the following intervals: 10, 15, 20, 25, and 30 minutes. Hint: use if statements inside the loop for these intervals.
calories_per_second = 3.9
for i in range(10,31):
print(i *calories_per_second ," calories burned after ",i , " minutes")
Comments
Leave a comment