0

Write a c program for even and odd without using decision making?

19th Mar 2018, 4:16 PM
Irrfan Shaikh
Irrfan Shaikh - avatar
2 Answers
+ 1
What do you mean with "decision making"? The simplest solution I can think of is this: bool is_odd(int num) { return (num % 2); }
20th Mar 2018, 1:51 AM
Chris
Chris - avatar
+ 7
Unless this is a question, please submit challenges via usage of the lesson-factory. Thanks.
20th Mar 2018, 2:16 AM
Fox
Fox - avatar