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
Do you know the purpose of 'register' keyword?
How #define works?
Write a code to generate a series where the next element is the sum of last k terms.
what are bit fields in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Define C in your own Language.
What is sizeof return in c?
What is nested structure with example?
Is c call by value?
Lists the benefits of c programming language?
What is structure data type in c?
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
how do you programme Carrier Sense Multiple Access
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Explain how can I convert a number to a string?