10783 - Odd Sum


Difficulty : trivial

Solution Description :

Simple sum of odd number

Input a & b
if a is even then convert to odd a --
if b is even then convert to odd b--
1+3+5+ .... +a = sum1
1+3+5+......+b = sum2

print sum2-sum1

Or
iterate from a until b and increment the counter by 2 for each iteration sum += conter

at last print sum