--[[Write a program to check whether a given number is positive or negative.--]]
num = io.read("*n")
if(num>0)
then
print('The given number is positive.')
elseif(num<0)
then
print('The given number is negative.')
else
print('The given number is 0 itself.')
end
To embed this project on your website, copy the following code and paste it into your website's HTML: