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: