📄 chapter6n3.java
字号:
/** * * circumference of circle calculation * * Written by: Roger Garside * * First Written: 2/Oct/96 * Last Rewritten: 2/Oct/96 * */import java.lancs.* ;public class Chapter6n3 { /** * * main * */ public static void main(String[] args) throws Exception { BasicIo.prompt("type the radius: ") ; double radius = BasicIo.readDouble() ; double circumference = 2 * Math.PI * radius ; System.out.print("a circle of radius " + radius) ; System.out.println(" has circumference " + circumference) ; } // end of method main } // end of class Chapter6n3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -