Advertisement
Guest User

Untitled

a guest
Feb 19th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int N, H, M, S;
  7. cin >> N;
  8. H = ((N / 3600) % 24);
  9. M = ((N / 60) % 60);
  10. S = (N % 60);
  11. cout << H << ":" << M / 10 << M % 10 << ":" << S / 10 << S % 10;
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement