Question: Write a program that will ask the user for a number, and return the summation of that number. The value must be sent to a
Write a program that will ask the user for a number, and return the summation of that number. The value must be sent to a function, and the result must be returned from the function.
For example, if the user enters the number 5, your program would return 15 (which is 5+4+3+2+1)
Use a recursive solution
In JAVA
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
