Subject: PHP

Check If a Number is Even or Odd

Create a variable $num = 15. Use the modulus operator (%) to check if the number is even or odd and display a message accordingly.

Select file or drag and drop

PNG, JPG, SVG

Preview