Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / kiran
main()
{
int n;
printf("enter the number");
scanf("%d",&n);
n%2==0?(printf("given number is even");):(printf("given
number is odd"););
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
How do I determine whether a character is numeric, alphabetic, and so on?
In a switch statement, what will happen if a break statement is omitted?
Why is c called "mother" language?
How are variables declared in c?
Why do we use & in c?
What does the && operator do in a program code?
What is this pointer in c plus plus?
What does the error 'Null Pointer Assignment' mean and what causes this error?
How can I recover the file name given an open stream or file descriptor?
what is the diffrenet bettwen HTTP and internet protocol
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Is the exit() function same as the return statement? Explain.
Why isn't it being handled properly?
Differentiate between a structure and a union.
What does struct node * mean?