Given a number N, WAP to find out sum of all the numbers from 1 to N.
If N= 10, then output is 1+2+3+....10
But you need to find it using recursion.
Published By : Suraj Ghimire
Given a number N, WAP to find out sum of all the numbers from 1 to N.
If N= 10, then output is 1+2+3+....10
But you need to find it using recursion.