1. Find the elapsed time from 2 minutes and 11 seconds to 4 minutes and 25
seconds.
Answers
Answered by
0
Step-by-step explanation:
4:25-2:11
2:14 answer jjjjjjjj
Answered by
0
Answer:
Same like this
Step-by-step explanation:
#include <iostream>
using namespace std;
int main()
{
int secondsElapsed, hours, minutes, seconds;
const int secondsPerMinute = 60;
const int secondsPerHour = 60 * secondsPerMinute;
cout << "Please enter the number of seconds elapsed: ";
cin >> secondsElapsed;
hours = secondsElapsed / secondsPerHour;
secondsElapsed = secondsElapsed % secondsPerHour;
minutes = secondsElapsed / secondsPerMinute;
seconds = secondsElapsed % secondsPerMinute;
cout << hours << ":" << minutes << ":" << seconds << endl;
return 0;
}
Similar questions