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 does int main () mean?
What are multibyte characters?
What is volatile c?
Explain how can I make sure that my program is the only one accessing a file?
What is scope of variable in c?
In which layer of the network datastructure format change is done
What is the purpose of ftell?
What are header files? What are their uses?
How is pointer initialized in c?
What is adt in c programming?
Differentiate between null and void pointers.
How can you find the day of the week given the date?
What is c programming structure?
What does & mean in scanf?
What is signed and unsigned?