There are 50 even numbers and 50 odd numbers from 1 to 100.
So, the sum of all odd numbers from 1 to 100 is 2500. S = n/2(first odd number + last odd number)
There are a total of 50 odd numbers, so n = 50. The sum of all odd numbers from 1 to 100 can be found by using the formula, S = n/2(first odd number + last odd number), where n is the total number of odd numbers from 1 to 100.