📄 moonweight.java
字号:
//Moonweight 计算物体在月球上的重力(moonweight=earthweight*0.17)
import java.io.*;
public class Moonweight
{
public static void main(String args[])
{
double earthweight;
double moonweight;
try
{
System.out.print("Input the weight in the earth:");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
earthweight=(double)Integer.parseInt(br.readLine());
moonweight=earthweight*0.17;
System.out.println("The weitht in the moon is"+moonweight);
}catch(IOException e){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -