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
explain what is a newline escape sequence?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is the difference between int main and void main in c?
how could explain about job profile
Is malloc memset faster than calloc?
Is null a keyword in c?
What is the difference between printf and scanf in c?
Difference between pass by reference and pass by value?
Explain what is the stack?
What is the use of sizeof?
Not all reserved words are written in lowercase. TRUE or FALSE?
What is a macro in c preprocessor?
Which is the best website to learn c programming?
Explain built-in function?
What are the different types of pointers used in c language?