Write a programme to find even numbers without using any
conditional statement?
Answer Posted / sridhar
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c,d; /*declaring variable using int*/
clrscr();
printf("enter the numbers:")
scanf("/n%d/n%d",&a,&b);/*getting number using scanf*/
c=a,b;
d=(c/2==0);
printf("the even number is:%d",d)/*print the final answer*/
getch();
}
| Is This Answer Correct ? | 8 Yes | 25 No |
Post New Answer View All Answers
What is the use of function in c?
How many levels of pointers have?
how to build a exercise findig min number of e heap with list imlemented?
What does c in a circle mean?
Where are some collections of useful code fragments and examples?
What is context in c?
What is a nested formula?
What is a nested loop?
What is the explanation for cyclic nature of data types in c?
How is actual parameter different from the formal parameter?
What is malloc calloc and realloc in c?
How do you do dynamic memory allocation in C applications?
what is reason of your company position's in india no. 1.
What is maximum size of array in c?
Do you know the purpose of 'register' keyword?