neg = 0
for i = 1,10,1
do
    no = io.read("*n")
    if(no<0)
    then
        neg = neg+1
    end
end
print(neg)

Embed on website

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