+ 1
Solved. Can't figure out what I'm doing wrong
6 Respuestas
+ 7
Charlie Don't put semicolon after if condition.
First if block is in proper, but next if condition have semi colon which ends if block there. Remove those.
+ 6
Charlie Thompson don't use semicolon (;) in conditions
+ 5
Charlie Thompson , there is no output, when the age is 12. Either include it in first if clause, or in the second else if clause.
+ 5
You also have too many semi-colons ";".
I've fixed your code:
https://code.sololearn.com/cidNMt4r1d7B/?ref=app
+ 4
Charlie Thompson
else if(...); <--remove this
+ 1
Remove the semicolons after else if condition