• 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.
#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);
system("pause");
return0;
}