1.

What is the GCD of 48, 18, 0?(a) 24(b) 2(c) 3(d) 6I had been asked this question in semester exam.The doubt is from GCD LCM Recursion, in chapter Recursion of Data Structures & Algorithms II

Answer»

Right option is (d) 6

The explanation is: GCD is LARGEST POSITIVE integer that divides each of the integer. So the GCD of 48, 18, 0 is 6.



Discussion

No Comment Found

Related InterviewSolutions