1.

Assume X and Y are non-zero positive integers. consider the following pseudo code fragment:while X <> Y doif X > y thenX <- X - YelseY <- Y - Xendifendwhileprint (X)What is the code doing?

A. It computes the LCM of two numbers.
B. It divides the largest numbers by the smaller.
C. It finds the smallest of two numbers.
D. It computes the GCD of two numbers.
Answer» E.


Discussion

No Comment Found