25 lines
440 B
C++
Raw Normal View History

2021-02-19 12:06:26 -05:00
#include <iostream>
using namespace std;
int main() {
int seconds;
int minutes;
int hours;
/* Type your code here. */
/* get totals */
cin >> seconds;
minutes = seconds/60;
hours = minutes/60;
/* Get remainders */
minutes = minutes % 60;
seconds = seconds % 60;
cout << "Hours: " << hours << endl
<< "Minutes: " << minutes << endl
<< "Seconds: " << seconds << endl;
return 0;
}