Assume that p and q are non-zero positive integers, the following program segment will perform -

While (p! = 0)

{

If (p>q)

p=p-q;

else,

q=q-p;

printf("%d",p);

}

1
Compute LCM of the given numbers
2
Subtract small number from large number
3
Compute GCD of the given numbers
4
The loop will run infinitely
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation