po = 0 
neg = 0 
for i = 1,10,1 
do
    num = io.read("*n")
    if(num<0)
    then
        neg = neg+1 
    elseif(num>0)
    then
        po = po+1 
    else
        po = po
        neg = neg
    end
end
print("positive = ",po)
print("negative = ",neg)

Embed on website

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