Predict the output of the following pseudocode if p = 15 and q = 4:
Integer solve (Integer p, Integer q) Integer value while(q) value = p MOD q p = q q = value End while return p End function solve()
(A)
1
(B)
2
(C)
3
(D)
5
Answer: (A)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles