Computer Science, asked by DebrupSantra, 1 month ago

Find the sum of all the odd numbers from 1 to 100 in Qbasic​

Answers

Answered by AMISHHH
1

Answer:

Sum of odd consecutive integers from 1 to 100 = (Sum of all consecutive integers from 1 to 100) - (Sum of even consecutive integers from 1 to 100). Sum of odds = (100 x 101/2) - [2 x (50 x 51/2)] = 5050 - 2550 = 2500.

Answered by jamisatyasagar2003
0

Answer:

the sum of all the odd from 1 to 100 is 50

Similar questions