Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int srt,end,total;
- scanf("%d %d",&srt,&end);
- if(srt>=12)
- {
- total=(24-srt)+end;
- }
- else if(end>=12)
- {
- total=end-srt;
- }
- else if(srt==end)
- {
- total=24;
- }
- printf("O JOGO DUROU %d HORA(S)\n",total);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement