about | help | code help+videos | done | prefs |
The greatest common factor (gcf) of ints a and b is the largest positive int that divides both a and b without leaving a remainder. For example, the gcf of 12 and 20 is 4. The gcf of 16 and 25 is 1. Given ints a and b (assume positive values for both), return the gcf of the numbers. gcf(12, 20) → 4 gcf(1, 100) → 1 gcf(100, 200) → 100 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy