207k views
3 votes
Write an algorithm to find the sum of first ten natural numbers. ​

User Sfkleach
by
7.5k points

1 Answer

2 votes

Answer:

The sum of the first 10 natural numbers is given by the formula: S n = n ( n + 1) 2. Here n = 10. ⇒ S = 10 ( 10 + 1) 2 ⇒ S = 10 × 11 2 ⇒ S = 5 × 11 ⇒ S = 55. Hence, the sum of the first 10 natural numbers is 55

User Mcw
by
7.0k points