This exercise is from the C++ primer 4th edition book from 2005. The
program works and runs fine. This is a solution to the exersice section
1.4.2 on page 17.
Exercise 1.10: Write a program that uses for loop to sum the numbers from 50 to 100. Now rewrite the program using a while loop.
In this part we rewrite the for loop to using a while loop