ints; s=(a%3600)%60; printf("%02d:%02d:%02d\n",h,m,s); }
include<stdio.h>main(){int t,th,tm,ts;while(1){ scanf("%d",&t); th=t/3600; tm=(t-th*3600)/60; ts=t-th*3600-tm*60; printf("%02d:%02d:%02d\n",th,tm,ts);}}如图所示,望采纳。。。
main( ) { int a; scanf("%d",&a); int h; h=a/3600; if(h>23) { int d; d=h/24; h=h-24; if(h>23) { h=h-24; } int m; m=(a%3600)/60; int s; s=(a%3600)%60; printf("%d day %d:%d:%d\n",d,h,m,s); } else {int m; m=(a%3600)/60; int s; s=(a...