04 Try it yourself Interactive

Collapse it one operator at a time

Each press of Next does exactly one thing: find the operator on the highest rung, replace it and its two operands with a single value, and show you what is left. The ladder below the expression highlights the rung that fired. Switch to the second tab and watch && refuse to evaluate its right-hand side. Type your own expression if you want to test a hunch. Nothing moves until you press Next.

Arithmetic & comparison
one rung at a time
Whole numbers 0–9999 and the operators on the ladder. Up to 6 operators.
Press Next to begin. Each press collapses one operator.


      
Operator
Rung
Collapsed0
Never run0
step 0 / 0