Quote:
Originally Posted by legend_018
I was just wondering. There are some examples that look like this:
while ((grade >=0) ect.
My question is: Can you put a relational expression inside the conditional clause of the while. like a grade< 1 || grade > 100
I can't write the whole thing because it keeps giving me an error when I click on submit new thread.
|
You can put properly formatted relational expressions inside the conditional clause of a while loop.
Dick Baldwin
Free Alice tutorials:
http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials:
http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials:
http://www.dickbaldwin.com/toc.htm