63 814
Assignments Done
99,5%
Successfully Done
In August 2018

Answer to Question #17174 in C# for abcg_jack

Question #17174
Running on a particular treadmill, you burn 3.9 calories per minute. Create an application that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
Expert's answer
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;




namespace Calories

{

class Program

{

static void Main(string[] args)

{

for (int i = 1; i < 30; i++)

{

double calories = i * 3.90;

Console.WriteLine(calories + " burnt after " + i + " minute(s)");

}

Console.ReadKey();

}

}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions