Computer Science, asked by Khayez99981, 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;
}

Answers

Answered by gauravjain0931
0

Answer:

This is the output of 10 numbers Starting From 0. There is no such Pattern I have to be found in this sequence.

Attachments:
Similar questions