root2.java

来自「it contains the practical programs in ou」· Java 代码 · 共 9 行

JAVA
9
字号
public class Root2 {    public static void main(String[] args) {        int i = 2;        double r = Math.sqrt(i);                System.out.format("The square root of %d is %f.%n", i, r);    }}

⌨️ 快捷键说明

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