Answer to Question #22818 in C++ for Sujata Roy

Question #22818
Consider a C program segment.
int compute (int x, int y){
while (x = = y){
if (x > y)x = x – y;
else y = y – x;}
return x;}
What will be the correct program fragment of the above code segment?
(a) {(x = 12, y = 18), (x = 20, y = 199)}
(b) {(x = 3 ; y = 4), (x = 4, y = 3), (x = 3, y = 2), (x = 3, y = 3)}
(c) {(x = 50, y = 77), (x = 100, y = 5)}
(d) {(x = 99, y = 13), (x = 100, y = 13)}
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS