The Programming Languages Zoo

A potpourri of programming languages

calc

[source] [example]

A simple arithmetic calculator. It handles addition, subtraction, negation, multiplication and division of integers.

The calculator is interactive. It cannot load files. Example interaction:

calc -- programming languages zoo
Type Ctrl-D to exit
calc> 2+2
4
calc> 101 * 111
11211
calc> 24 / (4 - 4)
Error: division by zero