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
Explain output of printf("Hello World"-'A'+'B'); ?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Is stack a keyword in c?
What are the similarities between c and c++?
Is c a great language, or what?
What are logical errors and how does it differ from syntax errors?
Explain how are 16- and 32-bit numbers stored?
Does c have an equivalent to pascals with statement?
Find MAXIMUM of three distinct integers using a single C statement
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
#include
how can use subset in c program and give more example
What is wrong with this program statement?
There seem to be a few missing operators ..
Explain what happens if you free a pointer twice?