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
i got 75% in all semester am i eligible for your company
What are local static variables?
Explain a file operation in C with an example.
How to throw some light on the b tree?
What is the use of parallelize in spark?
Why is event driven programming or procedural programming, better within specific scenario?
What is the size of structure in c?
What are the similarities between c and c++?
When should you not use a type cast?
Calculate 1*2*3*____*n using recursive function??
What are multibyte characters?
What does stand for?
Why is structure padding done in c?
What are the preprocessor categories?
What are extern variables in c?