Computer Science, asked by islamrazu50, 9 months ago

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 Anonymous
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