Quoth Geek King
View Post
Integers are negative-0-positive.
(At least in pure math.)
Since you've solved the initial question, I'll keep my nose out of it.

Princess-Snake: always write a draft in pseudocode or one of the drafting 'languages' (flowcharts, data flow diagrams, control flow diagrams, etc etc). Your instructors should be teaching you at least one of those.
You'll more easily catch basic logic errors in your program in the pseudocode/drafting 'language'/diagram, than in the actual code.
Or at least, that's my experience.

:/old:
Leave a comment: