创建一个类 ,分别计算矩形的面积和周长

public class chuanglei {// 创建一个Rectangle类 double width, length;// double area, zhou; chuanglei(double x) { width = x; length = x; } chuanglei(double w, double len) {  width = w; length = len; } public
相关文章
相关标签/搜索