Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- int hours,hours2,min,min2,fhour,fminu;
- printf("Entre com o tempo, em horas e minutos : (separados por espaco)\n"); scanf("%d %d",&hours,&min);
- printf("Entre com o outro tempo a sem somado, em horas e minutos : (separados por espaco)\n"); scanf("%d %d",&hours2,&min2);
- fhour = hours+hours2+((min+min2)/60);
- fminu = (min+min2)%60;
- printf("%d horas e %d minutos\n",fhour,fminu);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment