listing5.1.java

来自「java 完全探索的随书源码」· Java 代码 · 共 13 行

JAVA
13
字号
short width;
long length, area;
double totalCost, costPerFoot;

// In the multiplication below, width will be converted to a
// long, and the result of the calculation will be a long.
area = length * width;

// In the division below, area will be converted to a double,
// and the result of the calculation will be a double.
costPerFoot = totalCost / area;

⌨️ 快捷键说明

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