Coding challenge

Write some code to find two different positive numbers $a$ and $b$, each that differ from their reciprocals by $1$. Then, have it compute $a+b$? (Ans: 2.24.) (Ref: ACM 2002 12A)

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: