...

/

Solution: Finding Divisors

Solution: Finding Divisors

Go over the implementation of finding all the divisors of a number.

We'll cover the following...

Solution

Press + to interact
check = nil
(1..input).each do |x|
check = input % x
if check == 0
array << x
end
end

Explanation

  • ...