Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I swap bytes?

1120


How can you avoid including a header more than once?

1022


In c language can we compile a program without main() function?

1179


Are global variables static in c?

1218


How can you find the exact size of a data type in c?

1044


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1115


What is meant by initialization and how we initialize a variable?

1092


Explain the difference between #include "..." And #include <...> In c?

1088


Explain bit masking in c?

1192


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1198


What does != Mean in c?

1093


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2146


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1734


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1056


How does sizeof know array size?

1170