CLI reverse polish notation (RPN) calculator
-
checkout to project directory and update dependencies via composer
-
run console application
$ php bin/console app:rpn-calculator
-
input arguments and operations to cli, for example:
$ 5 8 3 + -
or
$ 5 8 3 $ + -
or
$ 5 $ 8 $ 3 $ + $ -
and so on.
Calculation will execude in reverse mode:
8 + 3 = 11
5 - 11 = -6
Currently you can use standard operations ('+', '-', '*', '/')
But it will modernize in future... Maybe ;-)
Hope you'll take fun!