The positive numbers 1, 2, 3... are known as natural numbers and its sum is the result of all numbers starting from 1 to the given number.
For n, the sum of natural numbers is:
1 + 2 + 3 + ... + n
#LearningandTeachingCoding
#JavaProgrammingTutorials
#JavaPrograms