// simple while loop program

#include <iostream>
using namespace std;

int main() {

cout << "This program computes the sum of all the numbers "
	"from a, a+1, a+2, .... b" << endl;
cout << "Enter the starting number: " << endl;
double a, b;
cin >> a;
cout << "Enter the ending number: " << endl;
cin >> b;
cout << "Thank-you, now processing your compuations: " << endl;

double s = 0.0;
double a1 = a;
while (a1 <= b) {
s +=a1; ++a1;
}
cout << "Your sum from " << a << " to " << b << " is " << s << endl;


return 0;

}

