A Simple Pocket Calculator


Using the ideas illustrated by the previous examples you can build a simple pocket calculator.

[Window dump of the Up/Down/Reset Counter]

For simplicity, postfix notation is used, i.e., to compute 3+4 you enter 3 Ent 4 +.

Here is the source code:



Things to note

The program structure is much the same as in the Up/Down/Reset counter.
  • Previous Example
  • Back to the Example list