Back
Khoang_Cach_XY.cpp
Save
// Khoang_Cach_XY.cpp #include
#include
using namespace std; int main() { float kc,x1,y1,x2,y2; cout<<"Nhap toa do A(x1, y1): "; cin>>x1>>y1; cout<<"Nhap toa do B(x2, y2): "; cin>>x2>>y2; kc = sqrt(pow(x2-x1,2)+pow(y2-y1,2)); cout<<"Khoang cach A -> B la: "<