int total; scanf(“%d”,&total); int h,m,sec; h = total/3600; m = total%3600/60; sec = total%60; printf(“%d:%d:%d”,h,m,sec);
total%3600/60不是h