I'm using Borland C++. How would I do an else if(...) and make it so it didn't equal any of the variables?
I'm using Borland C++. How would I do an else if(...) and make it so it didn't equal any of the variables?
And I stress the word MULTIPLE variables... plural... even if it's not there thats what I ment
use boolean in your if statmenets im assuming thats what your asking for....
|| = or
&&= and
else if ((count==20)||(count==40))
or this might be what you want
else if ((count!=20)||(count!=40))