Common divisors of N numbers
Given an array arr[] of N integers. The task is to find all the common divisors of all N integers.Examples Input: arr[] = {6, 90, 12, 18, 30, 18} Output: 1 2 3 6 Explanation: GCD of all the numbers is 6. Now to find all the divisors of 6, we have 6 = 1 * 6 6 = 2 * 3 Hence 1, 2, 3 and 6 the common di