You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
334 B
29 lines
334 B
4 years ago
|
int test (int A, int B) {
|
||
|
|
||
|
int C;
|
||
|
|
||
|
if (A == 0)
|
||
|
if (B == 0)
|
||
|
C = 1;
|
||
|
else if (B == 1)
|
||
|
C = 2;
|
||
|
else
|
||
|
C = 3;
|
||
|
else if (A == 1)
|
||
|
if (B == 0)
|
||
|
C = 4;
|
||
|
else if (B == 1)
|
||
|
C = 5;
|
||
|
else
|
||
|
C = 6;
|
||
|
else if (B == 0)
|
||
|
C = 7;
|
||
|
else if (B == 1)
|
||
|
C = 8;
|
||
|
else
|
||
|
C = 9;
|
||
|
|
||
|
return C;
|
||
|
}
|
||
|
|