#include using namespace std; /* Converts hour to minutes and seconds. */ int main() { int iHours, iMinutes = 0, iSeconds = 0; cout << "This program converts an input hour value into minutes and seconds." << endl; // read the hour input from user cout << "Please enter an integer value for hour: "; cin >> iHours; // calculate the minutes iMinutes = iHours * 60; // calculate the seconds iSeconds = iMinutes * 60; // Display output cout << iHours << " hours are " << iMinutes << " minutes and " << iSeconds << " seconds." << endl; return 0; }