write a program to check whether a given number is odd or even without using conditional operator.
write a program to check whether a given number is odd or even without using conditional operator.
Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:
Cprogramming.com FAQ
Make sure you have a look at the the posting guidelines:
C Board - Announcements in Forum : C++ Programming
Following the rules will ensure you get a prompt answer to your question.
Remember, too, that the board has a search facility, a link is at the top of your screen:
C Board - Search Forums
It will often get you a quicker answer to your questions than waiting for a response to one you have posted.
If you have any questions about this you may ask or you can contact one of our forum leaders:
C Board - Show Groups