The following code: 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? hint: don't forget that dividing integers results in an integer answer. for example, 9/4 = 2.
Answers
Answered by
0
Answer:
ki tu bakwaas admi hai aur sath hi sath lallu bhi?
Explanation:
Similar questions
India Languages,
4 months ago
Art,
4 months ago
English,
8 months ago
Computer Science,
8 months ago
Business Studies,
11 months ago
Social Sciences,
11 months ago