⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rectanglearea.java

📁 《A first book of java》by Gary J.Bronson 北大出版社
💻 JAVA
字号:
// this program calculates the area of a rectangle
// given its length and width
public class RectangleArea
{
  public static void main(String[] args)
  {
    double length, width, area;
    length = 27.3;                           
    width = 13.4;
    area = length * width;
    System.out.println("The length of the rectangle is " + length);
    System.out.println("The width of the rectangle is " + width);
    System.out.println("The area of the rectangle is " + area);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -