public void Nhap(string ghiChu)
Console.WriteLine(ghiChu);
Console.WriteLine("Nhap X");
this.X = int.Parse(Console.ReadLine());
Console.WriteLine("Nhap Y");
this.Y = int.Parse(Console.ReadLine());
public double TinhKhoanCach(DIEM B)
return Math.Sqrt(Math.Pow(this.X - B.X,2) + Math.Pow(this.Y - B.Y,2));
public void Nhap(string ghiChu)
Console.WriteLine(ghiChu);
this.A.Nhap("Nhap diem A");
this.B.Nhap("Nhap diem B");
this.C.Nhap("Nhap diem C");
public double TinhChuVi()
public static void Main()
TAMGIAC t = new TAMGIAC();