fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int input_SEC,hr,min,sec;
  5. printf("초시간 입력="),scanf("%d", &input_SEC);
  6. hr = input_SEC/3600;
  7. min = input_SEC%3600/60;
  8. sec = input_SEC%60;
  9. printf("%2d시간 %2d분 %2d초\n",hr,min,sec);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5304KB
stdin
8056064
stdout
초시간 입력=2237시간 47분 44초