Coding challenge

Write some code to prove that if $x$ is a real number, such than $x^2$ is an integer and $x^3$ is an integer, then $x$ itself must be an integer.

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: