三角型面积 area=1/2*bottom*high
package cn.it.chapter03;
public class IT02 {
public static void main(String[] args) {
// TODO Auto-generated method stub
double area;
double bottom;
bottom=4;
double high;
high=6;
area=(bottom*high)/2;
System.out.println("area="+area);
}
}

浙公网安备 33010602011771号