Exercises/#114 GCD and LCM
#114

GCD and LCM

EasyπŸ”’ Math & Numbers
35 XP

Problem

Write functions to compute the Greatest Common Divisor (GCD) and Least Common Multiple (LCM) of two numbers.

Examples

Input: a=12, b=18
GCD Output: 6
LCM Output: 36
mathrecursion
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

114 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features