so want to know why this didn't work Screen shot below

enter image description here

  • the *365 is the age of the person in days
    – Shazy
    Mar 12 '20 at 19:25

You have a structural error in your printf statement.

printf("You are at least %i 365 days old.\n,days");

The problem was the placement of the closing quote. It included the name of the variable that corresponds to the %i placeholder inside the quote string. The correct format is this:

printf("You are at least %i 365 days old.\n",days);

What I don't understand is the 365.

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)


oops it seems I have molded up int and string illustration from lecture my mistake

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .