So hopefully I am aloud to post this here. I am doing great in class but this chapter and especially this programming challenge has got me stumped. So I am in need of help.
Heres the question:
Create an application that when a user enters a positive integer value in a input box(the default number is 10) when the OK button is clicked, the application should display a message box with the sum of all the integers form 1 through the value entered by the user. If the user enters a negative value, the application should display an error message.
I believe i have to use a loop condition but i have no idea what to do.
EX: User enters 10 in the input box once OK button is pressed a message box pops up and says "The sum of the numbers 1 through 10 is 55"
use the following test data to determine if the application is calculating properly
VALUE SUM
5 15
10 55
20 210
100 5050