Running on a particular treadmill you burn 3.9 calories per minute..Design a program that uses a loop to display the number of calories burned after 10,15,20,25,30 minutes?
1
Expert's answer
2012-03-20T11:24:05-0400
print "Number of calories burned after N minutes:" print print "Minutes Calories" print "--------------------"
for i in range(10,30,5): print " ", i, " ", i*3.9
Comments
Leave a comment