Coding challenge

Write some code to find how many real values of $x$ will $\sqrt{120-\sqrt{x}}$ be an integer? (Ans: 11) (Ref: AMC 2006 12A)

Type your code here:


Lua reference

See your results here: