504 - Add The Even
Add The Even
Time Limit: 1 sec
The Problem
AimaS is playing with numbers again. She was thinking to make a program that add all the even numbers of the series. Can you help her with that?
Example:
The first number = 1
The Last number = 10
The series = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Result = 2 + 4 + 6 + 8 + 10 = 30
The Input
The input file contains a series of line. Each line contains 2 integers first number, F (0 <= F <=1000000) and last number, L (F <= L) of the series. Input is terminated by EOF.
The Output
For each line of input print the summation of even numbers in a separate line.
Sample Input
1 10
5 15
Sample Output
30
50
Problem Setter: Samia Safa Ahmed