fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int t;
  5. int h;
  6. int m;
  7. int s;
  8. int c;
  9. scanf("%d",&t);
  10. h=t/3600;
  11. m=t%3600/60;
  12. s=t%60;
  13. printf("c=%d:%d:%d",h,m,s); // your code goes here
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
3800
stdout
c=1:3:20