I want to exit a while() when the user enters a negative number of any size. What kind of condition would I need at the start of the loop to get the loop to exit w
while()
int i = -1; do { i = magic_user_input(); //simple enough? get a decent programming book to get the hang of loops } while(i > -1)
edit: sorry, my mistake: 'i' wasn't declared properly :) now it should be fine to use