public int CheckCC(int x) {
  int value = 0;
  if (x == 0)  {
    value = 100;
  } else {
    value = 10;
  }
  return value;      
}

Example 3: Cyclomatic complexity.

Back to Article