Answer:

DOS window

The program has done both output and input. It output data to the monitor when it wrote "Type a number" and the "?". It did input from the keyboard when it got the 23 and stored it in NUMBER. Then it did output again when it wrote 46 to the monitor.

Now hit any key on the keyboard to switch back to the QBasic window from the DOS window.

Several Runs of the Program

You can run the program again, without making any change to it. (Push "shift-F5" to start each run.) You can enter different data for each run. Here is an example of three runs of the program:

After each run of the program, push any key to return to the QBasic screen. The picture shows the DOS window after the program was run three times.

QUESTION 7:

Does the program work with floating point numbers?