Question: c++ question Write code that lets the user enter a number. The number should be multiplied by 2 and printed until the number exceeds 50.

c++ question

c++ question Write code that lets the user enter a number. The

Write code that lets the user enter a number. The number should be multiplied by 2 and printed until the number exceeds 50. Use a while loop. 2 Running on a particular treadmill your burn an input amount of calories per minute. Write a for loop to display the number of calories burned after 10, 20, and 30 minutes. Allow the user to input the amount of calories/ minute Sample Input: 3 9 Sample Output: Enter a number: 3 12 24 48 96 Enter the number of calories burned per minute: 9 10 minutes: 90 calories burned 20 minutes: 180 calories burned 30 minutes: 270 calories burned

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 Databases Questions!