mirror of
https://github.com/github/codeql.git
synced 2026-01-19 09:24:46 +01:00
21 lines
337 B
JavaScript
21 lines
337 B
JavaScript
function f(i, j) {
|
|
// start
|
|
var 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
|
|
} |