HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50232 - Sum of Even Numbers

Section problems

• 50162 - Mersenne prime
• 50164 - The roots of a quadratic eq...
• 50172 - Permutations and Combinat...
• 50192 - Nr of Missing Guests
• 50198 - Euro to Leke
• 50201 - Total Discount for the clients
• 50202 - Buying Books from Internet
• 50215 - ZScore normalization
• 50232 - Sum of Even Numbers
• 50239 - Basic Math Calculator
• 50246 - Ascending Numbers
• 50247 - Descending Numbers
• 50262 - Function f(x)
• 50268 - Download Percentage
• 50269 - Isosceles Triangles
• 50270 - Buy Three Items
• 50271 - Number of Right Triangles

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