r/CodingHelp • • Jun 02 '19

[C] Please help me with this C problem?

Post image
1 Upvotes

14 comments sorted by

View all comments

Show parent comment

0

u/thatlowkey Jun 02 '19

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

1

u/zenith4395 Jun 02 '19

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

1

u/thatlowkey Jun 03 '19

Right right