how to write an algorithm to find sum of first n odd numbers?
Answers
Answered by
1
Explanation:
To find the sum of first n odd numbers we can apply odd number theorem, it states that the sum of first n odd numbers is equal to the square of n. if we apply odd number theorem: sum of first 10 odd numbers = n * n = 10 * 10 = 100
Similar questions