Write a program that asks the user for a positive integer value – use a loop to get the sum of all integers from 1 up to the number entered, e.g., if 50 is entered, the loop finds the sum of 1, 2, 3 … 50.
Input validation: Do not accept a negative starting value.
Anybody know how to do this? Should I use a while or do while?