In this video,. I use the While loop for finding the sum of set of integers. Let me know if you have any questions.

source