Computer Science, asked by mwanzadalitso001, 10 months ago

int f (int n) { int ans = 0; for (int i = 1; i < n; i++) { if (i < n/2) { ans -= i; } else { ans += i; } } return ans; }
What does f(5) evaluate to?

Answers

Answered by sumirmalhotra06
9

Answer:

Explanation:

Isdont know this answer

Sorry.....

Similar questions