>>> exit CS1

CS1 Standard Demo Page

The following text was written to the standard output stream when the NumberList program was executed from IntelliJ.

>>> Display
40
30
20
9
56
76
89
5
23
12
45
63
29
87
67
>>> Help
HELP - display a menu of commands
DISPLAY - display the list of numbers
PRINT - print a number (FIRST;LAST;nth)
SWAP - exchange two elements (nth;mth)
ADD - add a number to the list (FIRST;LAST)
EXIT - terminate execution of the program
>>> print
first
40
>>> print
last
67
>>> sawp
### Unrecognizable command: sawp
>>> swap
3
7
>>> display
40
30
89
9
56
76
20
5
23
12
45
63
29
87
67
>>> add
first
3
>>> display
3
40
30
89
9
56
76
20
5
23
12
45
63
29
87
67
>>> exit