Recursion Implement a recursive program that takes in a number and finds the square of that number through addition. For example, if the user inputed a 3 , you would add
3+3+3=9
. If 5 is inputted, you would add
5+5+5+5+5=25
. The program must be implemented using recursion to add the numbers together. The output should show each iteration of the imputed number as well as the total.



Answer :

Other Questions