题目
题目描述
1.9(矩形的面积和周长)编写程序,使用以下公式计算并显示宽为4.5、高为7.9的矩形的面积和周长
公式:面积 = 宽 * 高
槽点
1.9矩形面积和周长这道题和1.8圆的面积有些像,但难度稍低,没有涉及Math.PI和Math.pow
可以参考我1.8的blog:
https://blog.csdn.net/weixin_46356698/article/details/119771770
代码块
public class Test1_9 {
public static void main(String