Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2025 | Set 2
Questions

Q23

NAT1 markEasy
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)

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.