ok, so I'm writing a program in which the user inputs a number 0-100 and it outputs a grade any other number comes out as an invalid entry. I did this using an IF statement and put inside a while statement. The number that is supposed to kick it out of the while and end the program is -1 but when I put it -1 in, it outputs -1 as an invalid number and the it kicks out, How can I make it so it doesn't output the -1? my last statement on the IF is else cout << blah blah blah
2007-10-16
07:23:04
·
2 answers
·
asked by
Pep
1
in
Computers & Internet
➔ Programming & Design