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$.← Back to challenges | Lessons

Run Share Lua reference