Write a C program to find odd and even numbers in an array. Also show how many odd numbers and even numbers are in the array.
10 points
Answers
Answered by
1
Answer:
The program output is also shown below.
* C Program to Print the Number of Odd & Even Numbers in an Array.
int array[100], i, num;
printf("Enter the size of an array \n");
scanf("%d", &num);
printf("Enter the elements of the array \n");
for (i = 0; i < num; i++)
scanf("%d", &array[i]);
Similar questions