Sum=0 
for i=1,10,1
do
    print("Enter the total items sold for this month")
    n=io.read("*n")
    Sum=Sum+n 
end
print("Sum of the items sold in the past 10 months  are", Sum)

Embed on website

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