Brainlag
  1. Library
  2. Examples
  3. C

A tiny stack calculator

Evaluate sums like "3 4 + 2 *" with a stack, the way old calculators and many virtual machines work, printing the stack at every step.

C15 minPremium

Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.