Input:
ID Value
1 10
2 20
3 30
4 40
5 50
Output:
ID Value
1 10
2 30(10+20)
3 50(20+30)
4 70(30+40)
5 90(40+50)
Please help me to here?
Know the answer? Post it. Somebody with the same question will find it here.




Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sai ReddyRank #6,320 · 270 reputationPosted May 21, 2018, 2:45 AM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted May 21, 2018, 1:40 AM EDT
Hi Sai,
Please find the below query.
Amit KumarRank #459 · 5.4K reputationPosted May 21, 2018, 1:53 AM EDT
Navneet Arora147 reputationPosted May 22, 2018, 1:37 AM EDT