NAT · 1 mark · C Programming

GATE CS 2025 CS-2 — Q33

 int x=126,y=105;
 do {
 if(x>y) x=x-y;
 else y=y-x;
 } while(x!=y);
 printf("%d",x);
The output of the given C code segment is ________. (Answer in integer)