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 to find the number of even integers and odd
integers in a given array in c language

Answer Posted / anshul

#include<stdio.h>
void main()
{
int a[10],i,b;
for(i=0;i<10;i++)
{scanf("%d",&a[i]);
}
printf("enter element to be searched:");
scanf("%d",&b);
for(i=0;i<10;i++)
{
if(a[i]==b)
printf("element found at location %d\n",i);
}
}
include

Is This Answer Correct ?    6 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i got 75% in all semester am i eligible for your company

2189


What are local static variables?

1107


Explain a file operation in C with an example.

1070


How to throw some light on the b tree?

1042


What is the use of parallelize in spark?

997


Why is event driven programming or procedural programming, better within specific scenario?

2385


What is the size of structure in c?

1116


What are the similarities between c and c++?

1027


When should you not use a type cast?

1082


Calculate 1*2*3*____*n using recursive function??

2001


What are multibyte characters?

1074


What does stand for?

1057


Why is structure padding done in c?

1097


What are the preprocessor categories?

1016


What are extern variables in c?

965