Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int N, H, M, S;
- cin >> N;
- H = ((N / 3600) % 24);
- M = ((N / 60) % 60);
- S = (N % 60);
- cout << H << ":" << M / 10 << M % 10 << ":" << S / 10 << S % 10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement