Coding challenge

Write some code to show that the sum of the infinite geometric series $\frac{1}{4}+\frac{1}{8}+\frac{1}{16}+\frac{1}{32}+...$ is 0.5.

Type your code here:


Lua reference

See your results here: