Computer Science, asked by mdrakibulislam12188, 8 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.

Answers

Answered by Pikachu07
1

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