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

What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4240


What is the purpose of 'register' keyword?

1048


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1047


In a switch statement, what will happen if a break statement is omitted?

1005


What is the c value paradox and how is it explained?

991


Why c is a procedural language?

1007


How many levels of pointers can you have?

1134


Which function in C can be used to append a string to another string?

1176


How can I use a preprocessorif expression to ?

994


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1197


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1882


Can a pointer point to null?

1020


Is it better to use malloc() or calloc()?

1058


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1780


What is main function in c?

1013