Objectives
- Use repetition
- Get user input
- Perform basic input validation
- Perform a calculation using a loop
- Display results of a calculation
Enter starting value for loop (1 - 500): -3 Invalid starting value. Enter starting value for loop (1 - 500): 501 Invalid starting value. Enter starting value for loop (1 - 500): 230 Enter ending value for loop (231 - 1000): 230 Invalid ending value. Enter ending value for loop (231 - 1000): 1001 Invalid ending value. Enter ending value for loop (231 - 1000): 782 The sum of the integers from 230 through 782 is 279818