[SOLVED] Write a program that will ask the user for a number, and return the summation of that number

10.00 $

Programming resource
, Digital learning resource
Categories: ,
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)
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

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.