Coding challenge

Write some code that finds all of the palindromic squares between 1 and 100. A "palindromic square" is a number whose square reads the same forward and backward. As an example, $11^2=121$, and 121 reads the same forward and backward. How about from 1 to 10,000? (Ref: Engle, p. 23.) Hint: Use getdigit(x,n) to return the n$^{th}$ digit (from the right) of an integer x (Ex: getdigit(1234,2) returns 3.)

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: