Answered You can hire a professional tutor to get the answer.
Create a function called sumTo which takes an integer parameter and returns the total of all of the numbers from 1 to that number.
Create a function called sumTo which takes an integer parameter and returns the total of all of the numbers from 1 to that number. For example, if the user entered a 5, the function would calculate 1 + 2 + 3 + 4 + 5 = 15. Keep prompting the user for a number until a zero (0) is entered. Use the following run as an example:
Enter