Coding challenge

The values of $a$, $b$, $c$, and $d$ are 0, 1, 2, and 3, but not necessarily in that order. Write some code to determine the maximum possible value of the expression $c\cdot a^n-d$.

Type your code here:


Lua reference

See your results here: