TOPIC

runtime error

dbhattacharjee2 asked 2 years ago

why it show me runtime error?

include

int main() {

int n,year,month,day,n1;
scanf("%d",&n);
year=n/365;
n1 = n%365;
month = n1/30;
day = n1%30;
printf("%d ano (s)\n",year);
printf("%d mes (es)\n",month);
printf("%d dia (s)\n",day);

return 0;

}

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

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