Write a programme to find even numbers without using any
conditional statement?

Answer Posted / guest

#nclude<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter the numbers for a,b,c:");
scanf("%d%d",&a,&b);
c=a/b;
c=0;
printf("The given number is even");
getch();
}

Is This Answer Correct ?    6 Yes 57 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of 'auto' keyword

681


What is 1f in c?

1842


Tell us the use of fflush() function in c language?

643


What is the meaning of c in c language?

598


Difference between exit() and _exit() function?

659






What do you mean by Recursion Function?

634


Why do we use namespace feature?

585


How can I avoid the abort, retry, fail messages?

665


What is scope rule in c?

609


c language interview questions & answer

1465


What's the difference between constant char *p and char * constant p?

660


How are variables declared in c?

601


What is struct node in c?

624


When should structures be passed by values or by references?

588


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1847