"TCORDON" <tcordonb@hotma il.com> wrote in message
news:%23WZGQNB0 FHA.3896@TK2MSF TNGP10.phx.gbl. ..
: How can i know if a number is even or not?
:
: Thanks
:
Try (numberToCheck Mod 2 = 0). This returns true if 'numberToCheck' is even.
Otherwise, it returns false.
"Siva M" <shiva_sm@onlin e.excite.com> wrote in message
news:ejRNGSB0FH A.2932@TK2MSFTN GP10.phx.gbl...[color=blue]
> If (N Mod 2 = 0) Then
> 'Number is even
> Else
> ' Number is odd
> End If
>
> "TCORDON" <tcordonb@hotma il.com> wrote in message
> news:%23WZGQNB0 FHA.3896@TK2MSF TNGP10.phx.gbl. ..
> How can i know if a number is even or not?
>
> Thanks
>
>
>[/color]
Comment