Draw the graph of the triangle function and calculate the
cyclomatic
complexity.
1 void triangle(int a, int b, int c)
2{
3 int type, t:
4 if (a>=b)
5{
6 t = a; a = b; b = t;
7}
8 if (a>=c)
9{
10 t = a; a = c; c = t;
11}
12 if (b>=c)
13{
14 t = b; b = c; c = t;
15}
16 if (a+b<=c)
17 type = 4;
18 else
19 {
20 if (a==b)
21 {
22 if(b==c)
23 type = 1;
24 else
25 type = 2;
26 }
27 else
28 {
29 if (b=c)
30 type = 2;
31 else
32 type = 3;
33 }
33 }
35 return type;
36}
Draw the graph of the triangle function and calculate the cyclomatic complexity. 1 void triangle(int a,...