1.9(矩形的面积和周长)编写程序,使用以下公式计算并显示宽为4.5、长为7.9的矩形的面积和周长: 面积 = 宽 × 长
1.9 (Area and perimeter of a rectangle) Write a program that displays the area and perimeter of a rectangle with a width of 4.5 and length of 7.9 using the following formula: area = width × length
下面是参考答案代码:
public class TheAreaAndThePerimeterOfRectangleQuestion9 {
public static void main