What is bc?

bc is an arbitrary precision calculator language

How to use bc?

type "bc" in command line and press Enter, then you can use it to do some caculation.

Excercise 01:

type 1 + 1 and press Enter then you will get 2 on the screen.

Excercise 02:

type 1 - 1 and press Enter then you will get 0 on the screen.

Excercise 03:

type 2 * 3 and press Enter then you will get 6 on the screen.

Excercise 04:

type 2 / 3 and press Enter then you will get 0 on the screen.

Excercise 05:

type 2 % 3 and press Enter then you will get 2 on the screen.

How to quit bc?

type "quit"

Where can I find more document about bc?

GNU bc Manual