Odd & Even Questions..!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Odd & Even Questions..!!

  1. #1
    Jim Guest

    Odd & Even Questions..!!


    I'm feeling retarded... I forgot how to tell if a number is odd or even.
    Is there a odd or even function? Help the retard please...!! Thanks.

    Jim

  2. #2
    Arthur Wood Guest

    Re: Odd & Even Questions..!!


    Public Function IsOdd(Value as Integer) as Boolean
    IsOdd = (Value Mod 2 = 1)
    end if

    Public Function IsEven(Value as Integer) as Boolean
    IsEven = (Value Mod 2 = 0)
    end if

    "Jim" <jcb1269@excite.com> wrote:
    >
    >I'm feeling retarded... I forgot how to tell if a number is odd or even.


    >Is there a odd or even function? Help the retard please...!! Thanks.
    >
    >Jim



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center