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)}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment