Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › MATH BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Implement Euclid's algorithm for the inputs 48 and 18. Preserve the original inputs, then print the GCD and LCM exactly as shown.
OUTPUT
SampleGCD = 6 LCM = 144
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.