Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How to determine if a number is ...

    Hi y'all!!

    I am trying to make a program that can determine if a number is pair or not, hope someone can help me!!

    Thanks in advanced!!

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    1,223
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Pair? What the heck is a pair number?

    I'll assume you mean "even".

    PHP Code:
    $type $number == 'even' 'odd'


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •