(b) For any two given positive integers a and b, what does this while-loop do? (8%)

int a = 1036, b = 364, n;
while (a != b)
{
if (a < b) {n = a; a = b; b = n;}
a = a-b;
}
printf("a = %d\n", a);