Finding the Highest Common Factor

Learn to find the highest common factor for two numbers in Ruby.

We'll cover the following

Problem

Write a program that asks the user to enter two non-negative integers and find their highest common factor (HCF).

Get hands-on with 1400+ tech skills courses.