int main()
{
int start,end;
cout << "Enter the boundaries( start, end): ";
cin >> start >> end;
double sum = 0;
if (start > end)
cout << "Start must be smaller than end!" << endl;
else
{
while (start <= end)
{
sum += reciprocal(start); //This one "+="
start++;
}
cout << "Sum of reciprocals: " << sum << endl;
}
return 0;
}