Электронные часы
unknown
c_cpp
2 years ago
275 B
10
Indexable
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int h = n / 3600 % 24;
n = n % 3600;
int m = n / 60;
n = n % 60;
int s = n;
cout << h << ":" << m / 10 << m % 10 << ":" << s / 10 << s % 10;
return 0;
}Editor is loading...