mirror of
https://github.com/github/codeql.git
synced 2025-12-29 23:26:34 +01:00
21 lines
340 B
C++
21 lines
340 B
C++
int f(int i, int j) {
|
|
// start
|
|
int result;
|
|
if(i % 2 == 0) {
|
|
// iEven
|
|
result = i + j;
|
|
}
|
|
else {
|
|
// iOdd
|
|
if(j % 2 == 0) {
|
|
// jEven
|
|
result = i * j;
|
|
}
|
|
else {
|
|
// jOdd
|
|
result = i - j;
|
|
}
|
|
}
|
|
return result;
|
|
// end
|
|
} |