Advertisement
Infernale

Clock

Oct 27th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     int tc,time,hrs,scs;
  5.     scanf("%d",&tc);
  6.     for(int i=1;i<=tc;i++){
  7.         scanf("%d",&time);
  8.         hrs = time/60;
  9.         scs = time%60;
  10.         printf("Case #%d: %02d:%02d\n",i,hrs,scs);
  11.     }
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement