count=0 
for i=1,5,1 
do
    print("Enter the value ")
    m=io.read("*n")
    if(m%3==0)
    then 
        count=count+1 
    end
end
print("The numbers which are divisible by 3 are",count)

Embed on website

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