GATE | IT | 2004 | Software engineering | Question 69

Last Updated :
Discuss
Comments

Consider the following program module:

int module1 (int x, int y) {
while (x! = y) {
if (x > y)
x = x - y,
else y = y - x;
}
return x;
}

What is Cyclomatic complexity of the above module?

1

2

3

4

Share your thoughts in the comments