Find the output of the code snippet if a=5 and b=6.
public boolean x(int a, int b)
{
boolean c = true;
while(a>1 && b>1)
{
if(a>b)
a-=b;
else
b-=a;
}
if(a ==1 || b == 1)
c = false;
return c;
Will the output be
a.error
b.flase
c.true
Answers
Answered by
0
Answer:
ok follow me iwillgivetheanswer
Similar questions