write a program to find the number of even integers and odd
integers in a given array in c language

Answer Posted / ks djd

#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);
}
}

Is This Answer Correct ?    7 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know the purpose of 'register' keyword?

642


How #define works?

618


Write a code to generate a series where the next element is the sum of last k terms.

734


what are bit fields in c?

606


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1660






Define C in your own Language.

641


What is sizeof return in c?

617


What is nested structure with example?

624


Is c call by value?

607


Lists the benefits of c programming language?

598


What is structure data type in c?

572


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

675


how do you programme Carrier Sense Multiple Access

1518


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1453


Explain how can I convert a number to a string?

650