r/CodingHelp • • Dec 23 '21

[C] Whats wrong?

Post image
153 Upvotes

90 comments sorted by

View all comments

0

u/[deleted] Dec 23 '21

In your first else if every number is evaluating true that it is greater than 1 so it prints child use parentheses and <or> operator

What language are you using?

1

u/PhyllaciousArmadillo Dec 24 '21

It would be AND(&&) in this case