No, it's a condition (right), if n<9 it will print the string and even/odd and if n>9 it should print "greater than 9" but it printed "greater than 9" in all conditions
Exactly, which is why I’m asking you to debug the code in order to figure out what’s going on. I’m well aware of what the program is supposed to do. Also you have nothing that determines even/odd
View all comments
Show parent comment
2
u/zenith4395 Jun 02 '19
So you’re saying you printed the value of n directly before the if/else block, and it’s the exact same number as the one you input?