Computer Science, asked by vidhyaredd, 1 month ago

function sum(n)
{
if(??)
return 1
else
return (n+sum(n-1)
end
}

Answers

Answered by rajsingh08471
2

Answer:

if(n==1) sum of n natural numbers

Similar questions