Home Project
Write the steps to find all the numbers between 1 and 51 that are divisible
Also, state each element of the program it belongs to.
STEPS
ELEMENT OF
THE PROGRAM
INPUT
Ito 5
Wives
be
영
ARITHMETIC
5+5 s +strrcyrxhdcrhxtrc
vcjthvcj
Answers
Answered by
0
Explanation:
Given an array of numbers, find the number among them such that all numbers are divisible by it. If not possible print -1.
Examples:
Input : arr = {25, 20, 5, 10, 100}
Output : 5
Explanation : 5 is an array element
which divides all numbers.
Input : arr = {9, 3, 6, 2, 15}
Output : -1
Explanation : No numbers are divisible
by any array element.
Similar questions