num = io.read("*n")
sum = 0 
start = 3
while(start<=num)
do
    print(start)
    sum = sum + start
    start = start+3
end
print("Sum=",sum)
    

Embed on website

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