Python Program to Find the Sum of Natural NumbersNatural numbers: As the name specifies, a natural number is the number that occurs commonly and obviously in the nature. It is a whole, non-negative number. Some mathematicians think that a natural number must contain 0 and some don't believe this theory. So, a list of natural number can be defined as: See this example: This example shows the sum of the first 100 positive numbers (0-100) Output: Next TopicPython Function Programs |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India