x = 0
limit = io.read("*n")
for i = 1,limit,1 
do
    n = io.read("*n")
    x = x+(n*n)
end
print(x)
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: