Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int a,s,m,h,j;
- printf(" entrer un nombre des secondes a : ");
- scanf("%d",&a);
- j=a/216000;
- h=(a-j*216000)/3600;
- m=(a-h*3600-j*216000)/60;
- s=a-(j*216000+h*3600+m*60);
- printf("le resultat c'est %d jours %d heures %d minutes %d secondes ",j,h,m,s);
- return 0;
- }
- @ussefshahid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement