InterviewSolution
Saved Bookmarks
| 1. |
11 1213Given three integers, /, j, and k, a sequencesum to be the value of 1 + (1 + 1) + (1 + 2) + (i+ 3) + ... +/+(-1) + (-2) + (-3) + ... +k(increment from íuntil it equals), thendecrement from juntil it equals k). Givenvalues /), and k, calculate the sequencesum as described.14151617Example1 = 5y = 9k= 6 |
| Answer» SORRY I don't UNDERSTAND your QUESTION | |