TÓPICO

Why Wrong Answer

rahath_pbsolver perguntou 1 year ago

My all test are show correct answer

include

const int anos = 365; int main() { int n, days, month, year;

scanf("%d",&n);
year = n / anos;

month = (n - anos * year) / 30;

days = (n - anos * year) % 30;

printf("%d anos (s)\n", year);
printf("%d mes(es)\n", month);
printf("%d dia(s)\n", days);

return 0;

}

Lembre de não publicar soluções. Sua publicação pode ser revisada por nossos moderadores.

  • feodorv respondido 1 year ago

    printf("%d anos (s)\n", year);

    Extra space here:

    printf("%d anos(s)\n", year);