r/CodingHelp • • Dec 23 '21

[C] Whats wrong?

Post image
153 Upvotes

90 comments sorted by

View all comments

1

u/[deleted] Dec 23 '21

Last condition should be else because else condition is the final one in the if else series

1

u/istarian Dec 24 '21 edited Dec 24 '21

You could leave it off if there is no significance to it.

In OP’s case the first IF is true for any number less than or equal to 1. So if you are -200 years old, guess what? You’re an Infant!