R
reepakmajhi.com
Solve this Question
Write a Program to find a number is even or odd?
Write a Program to find a number is even or odd?
Solve this Question
Write a Program to find a number is even or odd?
Solve this Question
Write a Program to find a number is even or odd?
Solve this Question
Write a Program to find a number is even or odd?
Solve this Question
Write a Program to find a number is even or odd?
Solve this Question
Write a Program to find a number is even or odd?
ctrucza said:how about this:
bool is_even(int n)
{
return ( (n == 0) || (n == 2) || (n == 4) || ... || (n ==
2*K) ); // for a carefully chosen value of K
}
Solve this Question
Write a Program to find a number is even or odd?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.