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