Hi
Originally postd by K Aditi
[solution deleted]
No doubut the above code solves the problem, but to keep things clear let me make a correction,
the if statement should be
because putting brackets around expressions makes it more readable and | is a bitwise OR operation not a logical OR, that may be a typo, but makes much difference.
Hope this helps
[ April 04, 2008: Message edited by: Fred Rosenberger ]