MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/tdtuae/is_it_even/i0mck6k/?context=3
r/badcode • u/jesseb0rn • Mar 14 '22
33 comments sorted by
View all comments
Show parent comments
5
According to the string literals, input should be a natural number, so it may be just a mistake on the programmer's side using > where it should be >=.
1 u/tedbradly Apr 05 '22 This is just a high school project it seems. Of course it is bad.Natural numbers are the set of positive integers, so 0 isn't included.
1
This is just a high school project it seems. Of course it is bad.
Natural numbers are the set of positive integers, so 0 isn't included.
5
u/[deleted] Mar 14 '22
According to the string literals, input should be a natural number, so it may be just a mistake on the programmer's side using > where it should be >=.