Math, asked by mahaboobjanmj786, 2 months ago

13
ALL
15
int
for
{
16
Given three integers, i, j, and k, a sequence
sum to be the value of 1 + (1 + 1) + (i + 2) + (1 +
3) + ... + i + (j – 1) + ( - 2) + (1 - 3) + ... +k
(increment from iuntil it equals j, then
decrement from j until it equals k). Given
values i, j, and k, calculate the sequence
sum as described.
17
$
·18
U
19
UN
20
21
1 1
22
}
return
}
23
24 )
Example
i = 5
J = 9
K= 6
Sum all the values from ito j and back to k:
5 + 6 + 7 + 8 + 9 + 8 + 7 + 6 = 56.
Function Description
Complete the function getSequenceSum in
the editor below.
getSequence Sum has the following
parameters)
ratt inte three integers
T​

Answers

Answered by bhattsachin603
0

Answer:

Izzy useful is well I'd do idiots week ludo it's Eric

Answered by Manish3257
0

fir se

Step-by-step explanation:

question write karo

Similar questions