Finding the Highest Common Factor
Learn to find the highest common factor for two numbers in Ruby.
Problem
Write a program that asks the user to enter two non-negative integers and find their highest common factor (HCF).
Access this course and 1400+ top-rated courses and projects.