Advertisement
ussefshahid

J h min s

Apr 22nd, 2015
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a,s,m,h,j;
  6.  
  7. printf(" entrer un nombre des secondes a : ");
  8. scanf("%d",&a);
  9.  
  10. j=a/216000;
  11. h=(a-j*216000)/3600;
  12. m=(a-h*3600-j*216000)/60;
  13. s=a-(j*216000+h*3600+m*60);
  14.  
  15. printf("le resultat c'est %d jours %d heures %d minutes %d secondes ",j,h,m,s);
  16. return 0;
  17. }
  18.  
  19. @ussefshahid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement