Write a programme to find even numbers without using any
conditional statement?
Answer Posted / mathiyazhagan
#include<stdio.h>
main()
{
char res[2][5]={"Even","Odd"};
int n;
printf("Enter a number :");
scanf("%d",&n);
printf("the given no is = %s",res[n%2]);
}
| Is This Answer Correct ? | 51 Yes | 7 No |
Post New Answer View All Answers
What is your stream meaning?
What does calloc stand for?
Who is the founder of c language?
What is boolean in c?
What is c standard library?
What is the difference between the = symbol and == symbol?
Explain what is the advantage of a random access file?
What are volatile variables in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Who developed c language and when?
Where are c variables stored in memory?
What is the advantage of a random access file?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What is a lvalue
write a program to find the given number is prime or not