public static DON_THUC Nhap() { DON_THUC kq; kq.He_so = XL_SO_THUC.Nhap("Nhap he so: "); kq.So_mu = XL_SO_NGUYEN.Nhap("Nhap so mu: "); return(kq); }
public static DON_THUC Nhap(String Ghi_chu) { DON_THUC kq; XL_CHUOI.Xuat(Ghi_chu); kq.He_so = XL_SO_THUC.Nhap("He so = "); kq.So_mu = XL_SO_NGUYEN.Nhap("So mu = "); return(kq); }
public static PHAN_SO Nhap(String Ghi_chu) { PHAN_SO kq; XL_CHUOI.Xuat(Ghi_chu); kq.Tu_so = XL_SO_NGUYEN.Nhap("Tu so:"); kq.Mau_so = XL_SO_NGUYEN.Nhap("Mau so:"); return(kq); }
public static void Main() { long So_1; long So_2; long kq; So_1 = XL_SO_NGUYEN.Nhap("So nguyen thu 1:"); So_2 = XL_SO_NGUYEN.Nhap("So nguyen thu 2:"); kq = So_1 + So_2; String Chuoi; Chuoi = "Tong cua " + So_1; Chuoi = Chuoi + " va " + So_2; Chuoi = Chuoi + " la " + kq; XL_CHUOI.Xuat(Chuoi); }
public static ArrayList Nhap(String Ghi_Chu) { ArrayList kq = new ArrayList(); long n; XL_CHUOI.Xuat(Ghi_Chu); n = XL_SO_NGUYEN.Nhap("Da thuc co bao nhieu don thuc:"); DON_THUC p; for (int i = 0; i < n; i++) { p = XL_DON_THUC.Nhap(); kq.Add(p); } return(kq); }
public static BIEU_THUC Nhap(String Ghi_chu) { BIEU_THUC kq; long n; XL_CHUOI.Xuat(Ghi_chu); n = XL_SO_NGUYEN.Nhap("Bieu thuc co bao nhieu so hang:"); kq.So_hang = new PHAN_SO[n]; kq.Toan_tu = new TOAN_TU[n - 1]; char c; kq.So_hang[0] = XL_PHAN_SO.Nhap("Nhap so hang thu 1 : \n"); for (int i = 1; i < n; i++) { kq.Toan_tu[i - 1] = XL_TOAN_TU.Nhap("Nhap toan tu thu " + i + " : "); kq.So_hang[i] = XL_PHAN_SO.Nhap("Nhap so hang thu " + (i + 1) + " : "); } return(kq); }