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:

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

Here is a share link to your code: