三角型面积 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);


}

}

posted @ 2022-10-04 17:58  卖核弹的小萝莉  阅读(37)  评论(0)    收藏  举报