Untitled

mail@pastecode.io avatarunknown
plain_text
2 months ago
390 B
3
Indexable
Never
#include <stdio.h>
int main()
{
    int ih,im,fh,fm;   
    scanf("%d %d %d %d",&ih,&im,&fh,&fm);

    if (fh>ih && fm>im)
    {
        printf("O JOGO DUROU %d HORA(S) E %d MINUTO(S)\n",(fh-ih),(fm-im));
    }

    else if (ih>=fh && im>=fm)
    {
        printf("O JOGO DUROU %d HORA(S) E %d MINUTO(S)\n",(24-(ih-fh)),(60-(im-fm)));
    }
        



    return 0;
}