Question: PHP CODE QUESTION Thank you Create a PHP script which checks whether the input number is even or odd. If it's even, print X is

PHP CODE QUESTION

PHP CODE QUESTION Thank you Create a PHP script which checks whether

Thank you

Create a PHP script which checks whether the input number is even or odd. If it's even, print "X is even.", and if it's odd, print "X is odd.", where X is the input value. If the input value is either 0 or a negative number, the program should instead print "The input value is invalid!". Tip: A number is even if its remainder when divided by two is 0. The form sending the number is as follows:

Luku:

Example output: 3 is odd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!