TOPIC

5% de erro em C

LUANSSA asked 3 years ago

include

int main(){ int h, m; while(scanf("%d%d", &h, &m) != EOF){ m = m/6; if(h >= 15){ h = h4/60; } else{ m += h4; h = h*4/60; if(m/60 > 0){ h = m/60; m = m%60; } } if(h > 12)h/=2; printf("%.2d:%.2d\n", h, m); } return 0;

}

Remember not post solutions. Your post may be reviewed by our moderators.

  • The_Curse replied 3 years ago

    include

    int main() { int a,b,c,d; while(scanf("%d %d", &a, &b)!= EOF){ c=a/30; d=b/6; printf("%.2d:%.2d\n",c,d); } return 0; } ThisThisisThisThisisthe