Ad Code

Responsive Advertisement

1046 - Game Time

Author: Ismail Hosen

Daffodil International University





Problem Link

//Please follow from main function

#include <stdio.h>

int main()

{

    int i, a, b;

    scanf("%d %d", &a, &b);

    i=b-a;

    if(i<0)

    {

        i=24+(b-a);

    }

    if(a==b)

    {

        printf("O JOGO DUROU 24 HORA(S)\n");

    }

    else

    {

        printf("O JOGO DUROU %d HORA(S)\n", i);

    }

    return 0;

}




Post a Comment

0 Comments