Write a program that reads n integers from the keyboard and calculates their sum using do-while loop

I guarantee that whatever you are trying to do, someone has posted a code snippet that will do what you want.