Greatest Common Divisor Coding Question-Asked in Adobe Interviews

Placewit
Feb 22, 2022

--

Problem Statement :

Write code of Greatest Common Divisor

Input Format:

The input contains a single line with the two numbers ’first’ and ‘second’, whose GCD has to be found.

Output Format:

The output consists of a single line containing the GCD of the two numbers.

Given:

10 3

Output:

1

Code:

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Placewit
Placewit

Written by Placewit

Upskilling students for tech placements!

No responses yet