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
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is difference between structure and union?
Explain what’s a signal? Explain what do I use signals for?
Is using exit() the same as using return?
What are near, far and huge pointers?
Explain what is the difference between #include and #include 'file' ?
Can a variable be both const and volatile?
Why do we use main function?
What is return type in c?
how to capitalise first letter of each word in a given string?
How can you allocate arrays or structures bigger than 64K?
What are qualifiers and modifiers c?
pierrot's divisor program using c or c++ code
How many loops are there in c?
What are enumerated types?