static void Main(string[] args) { Dathuc a = new Dathuc(); Dathuc c = new Dathuc(); Dathuc b = new Dathuc(); a.NhapDaThuc(); //a.RutGon(a).XuatDathuc(); a.Sapxep(); a.RutGon(); a.XuatDathuc(); Console.ReadLine(); }
static void Main(string[] args) { Dathuc T1 = new Dathuc(); T1.NhapDaThuc(); T1.XuatDaThuc(); Dathuc T2 = new Dathuc(); T2.NhapDaThuc(); T2.XuatDaThuc(); Console.WriteLine("T1 + T2 = "); Dathuc Tong = T1 + T2; Tong.XuatDaThuc(); Console.WriteLine("T1 - T2 = "); Dathuc Hieu = T1 - T2; Hieu.XuatDaThuc(); Console.ReadLine(); }