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

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

1001


What is an lvalue in c?

1122


What language is lisp written in?

1257


find the sum of two matrices and WAP for it.

1136


what are bit fields in c?

1706


What are the benefits of c language?

1176


Where is volatile variable stored?

1087


What is volatile, register definition in C

1105


What is array in c with example?

1252


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2424


What is graph in c?

1055


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1087


Write a program to check whether a number is prime or not using c?

1058


How would you rename a function in C?

1038


The statement, int(*x[]) () what does in indicate?

1146