Computer Science, asked by singhlalaita1234, 10 hours ago

value a=10 ,b=6
function (int a,int b)
int temp
while (b)
temp=a MOD b
a=b
b=temp
end-while
return a end function

Answers

Answered by jeetraj2222
0

Answer:

sorry

Explanation:

Answered by ankugowda96
0

Answer:

a=2

Explanation:

MOD(%) is used to find remainder between two numbers

while(6)

{

temp=10%6 (i.e 4)

a=6

b=4

}

return(6)

{

temp=6%4 (i.e 2)

a=4

b=2

}

return(4)

{

temp=4%2 (i.e 0)

a=2

b=0

}

return(0)

Hence While(0) is false, so a=2.

Similar questions