Given a range "N", print the sum of natural numbers till N

Write a function that receives an integer "N", and determines the sum of natural numbers till N.



Implementation:



Output:

 Enter an integer: 10
 Sum=55