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
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
Hindi,
4 months ago
Computer Science,
10 months ago
Math,
10 months ago
Math,
1 year ago
English,
1 year ago