Computer Science, asked by bishekkumar1580, 8 months ago

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 asdcfvghbjkhjnm
0

Answer:

ki tu bakwaas admi hai aur sath hi sath lallu bhi?

Explanation:

Similar questions