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

#include<stdio.h>
//#include<conio.h>

main()
{
//clrscr();
int a;
printf("\nenter the no\n");
scanf("%d",&a);
evenNum(&a);

}
evenNum(int *i)
{
if(*i <0)
{
printf("\nEnter correct number :\n");
}
else if(*i%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}

Is This Answer Correct ?    6 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2223


What's the difference between constant char *p and char * constant p?

1089


Does free set pointer to null?

952


c program to compute AREA under integral

2336


What is stack in c?

1028


What is the purpose of sprintf() function?

1052


How can I write a function analogous to scanf?

1099


Who is the founder of c language?

1108


Can a variable be both constant and volatile?

1044


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2074


i have a written test for microland please give me test pattern

2666


What is floating point constants?

1080


What are the different types of errors?

1071


Why do we use int main instead of void main in c?

1100


Write a program to find the biggest number of three numbers in c?

1005