You need to sign in or sign up before continuing.×
Retired
Find the GCF of Two Numbers (retired)
354 of 1,169Shadows of Time
Description:
Your task here is the find the GCF (Greatest Common Factor) of any two numbers passed into a method, which will return one integer answer as an output.
Examples:
findGCF(4, 6); // Should return 2
findGCF(93, 186); // Should return 93
findGCF(20, 5); // Should return 5
Here, inputs will always be natural numbers so there's no need to worry about negative values or zero.
Algorithms
Logic
Numbers
Data Types
Mathematics
Similar Kata:
Stats:
Created | Jul 31, 2016 |
Warriors Trained | 1635 |
Total Skips | 47 |
Total Code Submissions | 2443 |
Total Times Completed | 1169 |
Java Completions | 354 |
Python Completions | 395 |
C++ Completions | 337 |
C# Completions | 104 |
Haskell Completions | 67 |
Ruby Completions | 17 |
Total Stars | 9 |
% of votes with a positive feedback rating | 84% of 275 |
Total "Very Satisfied" Votes | 202 |
Total "Somewhat Satisfied" Votes | 60 |
Total "Not Satisfied" Votes | 13 |