Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

f ( x , y , z ) = ? mux

Answered: 1 week ago