#include using namespace std; int main() { int n; float x[100], y[100]; float dist, max_dist = 0; int pos1, pos2; cout<<"Nhap n: "; cin>>n; for (int i = 0; i < n; i++) { cout<<"Nhap x["<>x[i]; cout<<"Nhap y["<>y[i]; } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { dist = sqrt(pow(x[j] - x[i], 2) + pow(y[j] - y[i], 2)); if (dist > max_dist) { max_dist = dist; pos1 = i; pos2 = j; } } } cout<<"Toa do 2 diem xa nhat la: ("<