Assume the value of the variable n is equal to zero as the loop begins.
Use an IF statement to modify practice problem to exclude the value 99 from the
output. Can you think of a better way to do this that does not use an IF statement?
Replace OUTPUT n with IF n < > 99 THEN OUTPUT n
The modified program using an IF statement:
```
DO WHILE n < > 99
INPUT n
IF n < > 99 THEN OUTPUT n
LOOP
```
A better way:
```
INPUT n
DO WHILE n < > 99 OUTPUT n INPUT n
LOOP
```
You might also like to view...
Why do moviemakers use a green or blue screen for special effects instead of a red screen?
What will be an ideal response?
An ____ is a web program that works like a desktop application program, but the user doesn't need to install any software to run it.
A. RCA B. RIA C. RAA D. ROA
The Edit menu provides ____ ways to edit a symbol.
A. three B. four C. six D. seven
Individuals who hack into systems at an organization's request but are not employed by the organization are known as blue hats
Indicate whether the statement is true or false