点击运行
public class Main { public static void main(String args[]) { double x = 45.0; double y = 30.0; System.out.println( Math.toDegrees(x) ); System.out.println( Math.toDegrees(y) ); } }
运行结果 :
正在执行...