TOPIC

5% What is wrong? O que está errado? C

Felipe Monclaro Puppi asked 8 months ago

include

int main(){ int start, end;

scanf("%d %d", &start, &end);
if (end>start)
printf("O JOGO DUROU %d HORAS(S)\n", end-start);
else if (end==start)
printf("O JOGO DUROU %d HORAS(S)\n", 24);
else if (start>end)
printf("O JOGO DUROU %d HORAS(S)\n", (24-start)+end);

return 0; }

This topic was solved and cannot recieve new replies.