mirror of
https://github.com/github/codeql.git
synced 2026-07-23 12:12:05 +02:00
15 lines
242 B
Java
15 lines
242 B
Java
int f(int i, int j) {
|
|
int result;
|
|
if(i % 2 == 0) {
|
|
result = i + j;
|
|
}
|
|
else {
|
|
if(j % 2 == 0) {
|
|
result = i * j;
|
|
}
|
|
else {
|
|
result = i - j;
|
|
}
|
|
}
|
|
return result;
|
|
} |