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 / sumon

#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a%2==0)
{
printf("a is even number");
else
printf("a is odd number");
}
return o;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is a semicolon (;) put at the end of every program statement?

1076


Difference between Function to pointer and pointer to function

1078


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15816


What are reserved words with a programming language?

1139


Explain bit masking in c?

1141


how we can make 3d venturing graphics on outer interface

4832


What is calloc malloc realloc in c?

1059


Explain how do you override a defined macro?

1078


What is the use of bit field?

1184


How many levels deep can include files be nested?

1142


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4688


What is structure pointer in c?

1057


What is the use of pragma in embedded c?

1061


Why is C language being considered a middle level language?

1130


What is a good data structure to use for storing lines of text?

1086