HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50293 - Sum of odd numbers from a to b

Guest
• Review clarifications (2)

Section problems

• 50341 - Separate Into Digits
• 50335 - Five Math Operators
• 50408 - Molecules
• 50304 - Number Pattern
• 50305 - John's Tasks
• 50649 - Puzzle
• 50321 - Missing Number
• 50308 - IT Knowledge Seminars
• 50293 - Sum of odd numbers fr...
• 50401 - Sum of Odd Numbers
• 50365 - Sum of the numbers from a...
• 50390 - Total Salary Paid
• 50400 - nth Row rth Element of a Table
• 50292 - Average of 4 Marks
• 50462 - Class Average (3 Grades)
• 50439 - Telephone Calls
• 50436 - Pocket Money

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan.

Sum of odd numbers from a to b

You will be given two numbers a and b. Calculate and show the sum of odd numbers from a until b.

Input specification
You will be given the two integers a and b where 1 ≤ a < b ≤ 5000

Output specification
Show the sum of odd numbers from a until b.

Sample Input I
  4 10
Sample Input II
  2 28
Sample Output I
  21
Sample Output II
  195


Для отправки решений необходимо выполнить вход.

www.contester.ru