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:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: