← All problemsSign in

The gcd solver

Mr TB is very much keen on getting a greatest common divisor of a number. He has least knowledge in mathematics , so he needs out your help to solve his problem. His problem clearly states that he has been given two positive whole numbers $M$ and $N$ whose greatest common divisor needs to be found.So, he passes the problem to you for solving. ###Input Format - First line will contain $T$, numb

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start