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

What is an endless loop?

1280


In which language linux is written?

1230


Can the curly brackets { } be used to enclose a single line of code?

1173


How do you define CONSTANT in C?

1283


What is the main difference between calloc () and malloc ()?

1159


What is %lu in c?

1261


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3730


Explain what is the benefit of using enum to declare a constant?

1096


What is the use of void pointer and null pointer in c language?

1127


Why is it important to memset a variable, immediately after allocating memory to it ?

2078


plz let me know how to become a telecom protocol tester. thank you.

2191


What are preprocessor directives in c?

1102


Tell me the use of bit field in c language?

1071


Explain the meaning of keyword 'extern' in a function declaration.

1155


What is call by reference in functions?

1457