wrong answer 35%

jhonatan micael silva noronha asked 1 month ago


int main() { int dias,dias2,mes,ano; printf("digite a quantidade de dias:"); scanf("%d",&dias); ano =dias/365; printf("%d ano(s)\n",ano); mes=dias -(ano365); mes =mes/30; printf("%d mes(es)\n",mes); dias2=dias-(ano365)-(mes*30); printf("%d dia(s)\n ",dias2);

return 0;


This topic has not been answered yet. Be the first!

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