But, it can be done. It can be used from the keyboard. Most people will probably prefer bc . If an expression does not include an assignment, the results are printed. No semicolon is needed at the end of a line.
Variable names are only a single character.
The define statement is used to define functions. When this is used you have 6 less variable names. The input base is stored in ibase . Be cautious setting conversion bases, bc inputs ALL numbers using ibase . The output base is stored in obase .