Question: Write a C program using a function called find_divisible_by_2() that gets an array and prints the elements of that array which are divisible by 2.

Write a C program using a function called find_divisible_by_2() that gets an array and prints the elements of that array which are divisible by 2. Assume that the size of the array is 10. Here is the function declaration/prototype: void find_divisible_by_2(int a[],int size);

Sample Run:

Enter arrays elements: 10 15 4 1 20 54 6 79 15 63

Elements divisible by 2: 10 4 20 54 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!