Advertisement
pranto_95

Time

Jun 25th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5.     int second,hh,mm,ss;
  6.     printf("Enter Second:\n");
  7.     scanf("%d",&second);
  8.     second=second;
  9.     mm=second/60;
  10.     hh=mm/60;
  11.     printf("Total Time = %d:%d:%d",hh,mm,ss);
  12.     return 0;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement