num=io.read("*n") m=num%2 if(m==0) then io.write("The number is even.") else io.write("The number is odd.") end
To embed this project on your website, copy the following code and paste it into your website's HTML: