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 old is c programming language?
What is a node in c?
Where are c variables stored in memory?
What is the difference between malloc() and calloc()?
Why we write conio h in c?
What are examples of structures?
What does 3 mean in texting?
how to build a exercise findig min number of e heap with list imlemented?
What is the role of && operator in a program code?
What is a program flowchart and how does it help in writing a program?
What is %s and %d in c?
If null and 0 are equivalent as null pointer constants, which should I use?
Differentiate between null and void pointers.
What is a char c?
What is break in c?