Skip to content
Related Articles

Related Articles

ISRO | ISRO CS 2018 | Question 43

Improve Article
Save Article
  • Last Updated : 03 Jul, 2018
Improve Article
Save Article

Assume A and B are non-zero positive integers. The following code segment
while ( A != B) {
If ( A > B )
A – = B ;
B – = A ;
cout << A; // printing the value of A (A) Computes the LCM of two numbers
(B) Divides the larger number by the smaller number
(C) Computes the GCD of two numbers
(D) Finds the smaller of two numbers

Answer: (C)


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!