Đề bài: Tính chu vi và diện tích hình chữ nhật sử dụng lớp ngoài Tham khảo: CODE: Select All /** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package bai1;import java.util.Scanner;/**** @author TRANVANCUONG*/public class Bai1 { /** * @param args the command line arguments */ public static void main(String[] args) { HCN tinh=new HCN(); tinh.nhapDL(); tinh.chuvi(); tinh.dientich(); System.out.println("Chu vi: " + tinh.chuvi()); System.out.println("Dien tich: " + tinh.dientich()); } }class HCN{ int cd, cr, cv, dt; public void nhapDL() { Scanner nhap=new Scanner(System.in); System.out.println("Nhap chieu dai:"); cd=nhap.nextInt(); System.out.println("Nhap chieu rong:"); cr=nhap.nextInt(); } public int dientich() { dt = cd * cr; return dt; } public int chuvi() { cv= 2* (cd + cr); return cv; }}
Plavix Online Order Pharmaceutical Amoxicillin Amoxicillin Allergy Delayed Onset buy xenical orlistat canada Where To Buy Cipro
Generic Pharmacy Review Azithromycin Zithromax Buy Kamagra Alcorcon viagra Acheter Du Amoxil Generique
Cialis Generika Per Vorkasse Amoxicillin Side Effects In Infants Cialis Para Q Sirve viagra Purchasing Amoxicilina With Next Day Delivery Generic Kamagra Levetra
Levaquin Tablets Secure Amex Cialis Propecia Mental Problems <a href=http://cialibuy.com>Cialis</a> Buy Kamagra 100mg Generic Viagra
E Gravidanza Propecia Finasteride Cialis Leviteracetam Shopping <a href=http://buyciallisonline.com/#>cialis price</a> Viagra Ohne Rezept De