-- Code 4 - Square a number
-- Lua Programming
print ("Enter a number to square.")
x = io.read("*n")
y = x^2
print ("Your inputed number is:",x)
print ("Your squared number is:",y)
To embed this project on your website, copy the following code and paste it into your website's HTML: