alaminrifat

URI -1019 with C++

Apr 5th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int N,h=0,m=0,s=0;
  7.     cin>>N;
  8.     h = N /3600;
  9.     N = N % 3600;
  10.     m = N / 60;
  11.     s = N % 60;
  12.     cout<<h<<":"<<m<<":"<<s<<endl;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment