int main(void) { int S; printf("秒数> "); scanf("%d", &S); printf("%d:%d:%d\n", S/3600, S/60%60, S%60);}
Standard input is empty
秒数> 9:6:4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!