Coding challenge

Write some code to take in two numbers, $x$ and $y$, and compute the remainder when $x$ is divided by $y$, using this formula for the remainder: $r=x-y\lfloor\frac{x}{y}\rfloor$. The notation $\lfloor a \rfloor$, means the largest integer less than a number $a$, and is found using the math.floor() function.

Type your code here:


Lua reference

See your results here: