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 s or c?
What are structural members?
What is a newline escape sequence?
What is use of integral promotions in c?
What is data structure in c language?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Why do we use static in c?
What do you mean by command line argument?
When a c file is executed there are many files that are automatically opened what are they files?
What are the 4 types of functions?
How can you draw circles in C?
Did c have any year 2000 problems?
How can I recover the file name given an open stream?
Explain null pointer.
What is pointers in c?