LinuxCommandLibrary

arithmetic

Practice basic math with a quiz game

TLDR

Start an arithmetic quiz

$ arithmetic
copy
Specify one or more operation symbols to practice
$ arithmetic -o [+|-|x|/]
copy
Specify a range for problem numbers
$ arithmetic -r [7]
copy

SYNOPSIS

arithmetic [-o +-x/] [-r range]

DESCRIPTION

arithmetic is a simple educational program that quizzes users on basic arithmetic problems. It generates random math problems and tracks the user's accuracy, providing a playful way to practice mental math.
By default, problems use all four basic operations. The range option controls the magnitude of numbers used in problems.

PARAMETERS

-o operations

Specify which operations to include: + (addition), - (subtraction), x (multiplication), / (division)
-r range
Set the range for numbers in problems (0 to range, inclusive)

HISTORY

arithmetic is one of the classic BSD games, originating from the early Unix systems at Bell Labs. It has been included in the bsdgames package for decades as a simple educational utility.

SEE ALSO

bc(1), dc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community