/* Problem Set 4 Question 4 Solution by Dillon Morse
 * -------------------------------------------------
 * 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 10,
 * 15, 20, 25, and 30 minutes.
 */

#include<iostream>
using namespace std;

const double calories_per_minute = 3.9;

int main() {
  int i;
  for(i = 10; i <= 30; i = i + 5) {
    cout << "After " << i << " minutes, " << i * calories_per_minute
         << " calories are consumed." << '\n';
  }

  // Necessary to prevent warnings from some compilers.
  // I'm not keeping the program running in a paused state because I am running
  // it from a CLI, so letting it close is most convenient.
  return 0;
}