HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50896 - Sum of Even Numbers

Volume problems

• 50897 - Prime Number
• 50901 - Sum of Cubes-1
• 50957 - Divisible by 3
• 50898 - Draw the Pattern
• 50896 - Sum of Even Numbers
• 51115 - Pascal Triangle
• 51116 - The Star Triangle
• 50303 - Pattern
• 50882 - FizzBuzz
• 50308 - IT Knowledge Seminars
• 50312 - Sales Bar Chart
• 50316 - Population Bar Chart
• 50313 - Pattern Displays

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