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 program for even numbers?

Answer Posted / dwarika

#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
return 0;
}

Is This Answer Correct ?    56 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I call a function with an argument list built up at run time?

1171


What is a ternary operator in c?

1054


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

5138


What are static variables in c?

1026


What is scope rule of function in c?

1025


Differentiate between a for loop and a while loop? What are it uses?

1130


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3181


Compare interpreters and compilers.

1027


How do we print only part of a string in c?

970


What are structures and unions? State differencves between them.

1096


What is the use of putchar function?

1005


How can you determine the size of an allocated portion of memory?

1235


What are actual arguments?

1043


What are c identifiers?

1038


What are the header files used in c language?

990