Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int
- main ()
- {
- int sec, min, h, d;
- cin >> sec;
- cout << ((sec % 86400) / 3600) << ":" << (((sec % 86400) % 3600) / 60) / 10;
- cout << (((sec % 86400) % 3600) / 60) % 10 << ":";
- cout << (((sec % 86400) % 3600) % 60) / 10;
- cout << (((sec % 86400) % 3600) % 60) % 10;
- }
Advertisement
Add Comment
Please, Sign In to add comment