Ответ:
#include <cmath>
#include <iostream>
using namespace std;
int main(){
int sec,min,hour;
cin >> sec;
hour = sec / 3600;
sec %= 3600;
min = sec / 60;
sec %= 60;
cout << hour << " " << min << " " << sec;
return 0;
}
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include <cmath>
#include <iostream>
using namespace std;
int main(){
int sec,min,hour;
cin >> sec;
hour = sec / 3600;
sec %= 3600;
min = sec / 60;
sec %= 60;
cout << hour << " " << min << " " << sec;
return 0;
}
Объяснение: