...

View Full Version : How to determine if a number is ...



farid
07-21-2005, 09:55 PM
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!!

AaronW
07-21-2005, 10:12 PM
Pair? What the heck is a pair number?

I'll assume you mean "even".



$type = $number % 2 == 0 ? 'even' : 'odd';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum