1 回答
寒食君Talk
TA贡献3条经验 获得超2个赞
class rectangle{
public double length;
public double width;
public double area;
public double perimeter;
public double Cal_area{
area=width*length;l
return area;
}
public double Cal_perimeter{
perimeter=2*(length+width);
return perimeter;
}
}
- 1 回答
- 0 关注
- 1360 浏览
添加回答
举报
0/150
提交
取消