Computer Science, asked by atanupal196133, 4 months ago

void test 2(int a,int b)
{
while(a!=b)
{
if(a>b)
{
if(a>b)
a=a-b;
else
a=b-a;
System.out.println(a);
}
If 14 and 17 are passed to the function

Answers

Answered by piyushnanda2
1

Answer:

this is a infiinite loop

Explanation:

so th answer too will be infinite

Similar questions