write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / dheerendra
logic
main()
{
int a;
(a%2==0)?printf("even"):printf("odd")
}
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the code for 3 questions and answer check in VisualBasic.Net?
Why is c called c not d or e?
Not all reserved words are written in lowercase. TRUE or FALSE?
Can a program have two main functions?
Define Spanning-Tree Protocol (STP)
How can I direct output to the printer?
What are the advantages of c preprocessor?
Is it fine to write void main () or main () in c?
When can you use a pointer with a function?
What does %d do?
What are terms in math?
Which is better malloc or calloc?
Why c language?
What is pointers in c?
What the different types of arrays in c?