HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50896 - Sum of Even Numbers

Section problems

• 50353 - Cube of the Largest number
• 50359 - Mode of a Series
• 50539 - Number of Chairs - 2
• 50532 - Close City
• 50462 - Class Average (3 Grades)
• 50288 - Even numbers in even posit...
• 50372 - Number Quadruplets
• 51007 - Function f(x)
• 50896 - Sum of Even Numbers
• 50903 - Basic Math Calculator
• Cineplexx
• Cirku Belluci
• 50659 - Covariance Matrix
• El Clasico
• 50657 - Permutations and Combinat...
• 50658 - The Message
• 50916 - Ascending Numbers

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.

Sum of even numbers from a to b

 

You will be given two numbers a and b. Calculate and show the sum of even 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 even numbers from a to b.

 

Sample Input I   

Sample Input II  

4 10

2 28

Sample Output I   

Sample Output II

28

210

 

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

www.contester.ru