fork(1) download
  1. int main()
  2. {
  3. int S = 3800;
  4. int h = S / (60 * 60);
  5. int m = (S % (60 * 60)) / 60;
  6. int s = (S % (60 * 60)) % 60;
  7. printf("%d:%d:%d\n", h, m, s);
  8. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
1:3:20