Sum=0 print("Enter your final value") n=io.read("*n") i=0 while(i<=n) do if(i%5==0) then Sum=Sum+i end i=i+1 end print("Sum of numbers divible by 5=", Sum)
To embed this project on your website, copy the following code and paste it into your website's HTML: