Question: Program 1 : / / comment: n is a positive integer in this program Function Add _ Numbers ( int n ) : if (

Program 1:
// comment: n is a positive integer in this program
Function Add_Numbers(int n):
if (n==1) :
Print("result of n=1 is equal to 1");
Return 1;
Else (n>1) :
Print ("the input number is more than 1")
Return n + Add_Numbers(n-1)
 Program 1: // comment: n is a positive integer in this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!