Dianz S.

asked • 05/31/21

Arrays and Functions

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 array’s elements: 10 15 4 1 20 54 6 79 15 63

Elements divisible by 2: 10 4 20 54 6

1 Expert Answer

By:

Patrick B. answered • 05/31/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.