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
How can I make sure that my program is the only one accessing a file?
What is structure data type in c?
Can you please explain the difference between strcpy() and memcpy() function?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Why is this loop always executing once?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Do character constants represent numerical values?
Write a program to implement queue.
Write a code on reverse string and its complexity.
Explain what are reserved words?
How is a structure member accessed?
Why does not c have an exponentiation operator?
Why is c so powerful?
What is #define?
What is an lvalue?