#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float startX,startY,endX,endY,len1,len2;
cout << "Enter value of start line x: ";
cin >> startX;
cout << "Enter value of start line y: ";
cin >> startY;
cout << "Enter value of end line x: ";
cin >> endX;
cout << "Enter value of end line y: ";
cin >> endY;
cout << "Enter value of L1: ";
cin >> len1;
cout << "Enter value of L2: ";
cin >> len2;
float dx,dy,magnitude;
dx = endX - startX;
dy = endY - startY;
magnitude = pow(dx*dx+dy*dy, 0. 5);
bool result = magnitude > len1 && magnitude < len2;
cout<<"Result: "<< result;
}
Где-то так. Писал без компилятора, возможно, где-то точку с запятой пропустил или еще что.