C program to create a new array from a given array with the elements divisible by a specific number
Given an array arr1 and the number b, we have to create a new array arr2 by the elements of arr1 elements which are divisible by b.
Example:
Input:
Enter array elements:
10
15
20
25
30
35
40
45
50
55
Number: 10
Output:
Elements of arr2: 10 20 30 40 50
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer