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

Simplify the program segment if X = B then C ← true else C ← false

3065


Are c and c++ the same?

1103


What is a built-in function in C?

1669


What is the benefit of using #define to declare a constant?

1150


write a program to rearrange the array such way that all even elements should come first and next come odd

2353


Explain which function in c can be used to append a string to another string?

1138


What are conditional operators in C?

1142


Is a pointer a kind of array?

1246


Why clrscr is used in c?

1059


What is register variable in c language?

1062


What will be your course of action for a push operation?

1154


What is an array? What the different types of arrays in c?

1253


How do you sort filenames in a directory?

1236


What does typedef struct mean?

1163


What is type qualifiers?

1190