Advertisement
Robin_39

Untitled

Apr 28th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,c,d;
  5. scanf("%d",&d);
  6. a=d%60;
  7. b=d/60;
  8. c=0;
  9. if(b>59)
  10. {
  11. c=b/60;
  12. b=b%60;
  13. }
  14. printf("%d:%d:%d",c,b,a);
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement