#include <iostream>
usingnamespace std;
int main ()
{
//Declare varibles
int number1=0, number2=0, sum=0;
int i;
cout << "Enter the First Number:" << endl;
cin >> number1;
cout << "Enter the Second Number:" << endl;
cin >> number2;
if (number1 > number2)
{
cout<<"ERROR, First Number must be less than Second Number"<<endl;
}
//loop through and add even values
for(i = number1; i < number2; i++)
{
if(i%2 == 0)
{
sum = sum + i;
}
}
cout << "Sum: " << sum << endl;
return (0);
}