• Running on a particular treadmill you burn 3.9 calories per minute. Write a program that uses a loop to display the number of calories burned after 5, 10, 15, 20, 25 and 30 minutes. Use a while{} loop construct to solve this problem.
1
Expert's answer
2012-11-06T10:23:01-0500
#include <iostream> using namespace std;
int main () { inti = 0; do { doublecalories = i * 3.90; cout<< calories << " burnt after " << i << " minute(s)" << endl; i++; }while(i <= 30);
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Dear IBN, thank you for answer.
i=10; while(i
Leave a comment