Problem Description

Find largest number that divides both numbers completely.
Example: GCD of 12 and 18 is 6
Real Life: Used when simplifying fractions.

Step-by-Step Logic:
1. Take two numbers
2. Find smaller of two numbers
3. Start from smaller and go down to 1
4. First number that divides both is GCD
5. Print GCD

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next