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.← Back to challenges | Lessons

Run Share Lua reference

Here is a share link to your code:

Close