function calculateSum(a, b) {
console.log("Starting calculation");
if (a > 0 && b > 0) {
console.log("Both numbers are positive");
let result = a + b;
for (let i = 0; i < 3; i++) {
console.log("Processing step: " + i);
result = result + i;
}
return result;
} else {
console.log("One or both numbers are not positive");
return 0;
}
}
calculateSum(5, 10);