Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int seg,hours,min,secun;
- printf("Digite a duracao do evento, em segundos: \n"); scanf("%d",&seg);
- hours = seg/3600;
- min = (seg%3600)/60;
- secun = seg - ((hours*3600)+(min*60));
- printf("O evento durou %d horas, %d minutos e %d segundos\n",hours,min,secun);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment