Question DSA-MATH-0023
EasyUsing Euclid's algorithm, what is gcd(84, 36)?
- A.
6
- B.
4
- C.
Show answer and explanation
Answer: D
gcd(84, 36) = gcd(36, 12) = gcd(12, 0) = 12.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Math and Number Theory question
Using Euclid's algorithm, what is gcd(84, 36)?
6
4
Answer: D
gcd(84, 36) = gcd(36, 12) = gcd(12, 0) = 12.
36
12