r/CodingHelp • • Dec 23 '21

[C] Whats wrong?

Post image
153 Upvotes

90 comments sorted by

View all comments

75

u/terroroferror Dec 23 '21 edited Dec 23 '21

Change following lines

Line #12 - (1 < x && x < 13)

Line #16 - (13 <= x && x < 20)

Keep only `else` on line #20

Edit: also add statement `return 0;` before line #24

-2

u/CutRepresentative644 Dec 23 '21

Should it not be (13 >= x && X < 20)

3

u/BigUwuBaby Dec 24 '21

No, that’s equivalent to x <= 13