+ 1
error: expected primary-expression before '<' token
What have I done wrong? the line is if(num >0 && <25) { ... } ... just means I haven't included it. Do I need to for help?
4 Réponses
+ 19
You have to write num twice to check the two conditions, like this:
if (num > 0 && num < 25)
+ 2
ooh cheers!
+ 2
youcef how do the extra brackets help?
+ 1
if((num >0) && (num <25)) {
}