Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 burnedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started