import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); double a = input.nextDouble(); double b = input.nextDouble(); Calculate(a, b); } public static void Calculate(double a, double b){ double x = -b/a; System.out.printf("%.2f",x); } }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分