Computer Science, asked by dhanush2274, 4 months ago

how to write an algorithm to find sum of first n odd numbers?​

Answers

Answered by Anonymous
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