Sum of Natural Numbers in Python

Write a Program in Python to find Sum of Natural Numbers.

Output

Enter a DesiredNumberber: 8
The sum is 36

Exercise

Write a Program in Python to find Sum of odd Natural Numbers.

Sum of n number of odd natural numbers C++

 

Add a Comment