[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

**arithmetic** [ **+ **] [
**- **] [ **x **] [ **/ **] [ *Range *]

The **arithmetic** command
displays simple arithmetic problems and waits for you to enter an
answer. If your answer is correct, the program displays
`Right!` and presents a new problem. If your answer is wrong,
it displays `What?` and waits for another answer. After a set
of 20 problems, the **arithmetic** command displays the number of
correct and incorrect responses and the time required to answer.

The **arithmetic** command
does not give the correct answers to the problems it displays. It
provides practice rather than instruction in performing arithmetic
calculations.

To quit the game, press the
Interrupt (Ctrl-C) key sequence; the **arithmetic** command
displays the final game statistics and exits.

The optional flags modify the
action of the **arithmetic** command. These flags are:

If you do not select any flags,
the **arithmetic** command selects addition and subtraction problems
and a default range of 10. If you give more than one problem specifier
(**+**,** -** ,**x**, **/**), the program mixes
the specified types of problems in random order.

**To drill on addition and subtraction of integers from 0 to 10:**arithmetic

**To drill on addition, multiplication, and division of integers from 0 to 50:**arithmetic +x/ 50

/usr/games
| Location of the system's games. |

The **back** command, **bj** command, **craps** command, **fish** command, **fortune** command, **hangman** command, **moo** command, **number** command, **quiz** command, **ttt**
command, **turnoff** command, **turnon** command, **wump** command.
**
**