可以这样写:
public class BinaryEquation { public static void main(String[] args) { // 获取用户输入的二元一次方程的系数 System.out.println("请输入一元二次方程的系数:"); Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double c = sc.next
可以这样写:
public class BinaryEquation { public static void main(String[] args) { // 获取用户输入的二元一次方程的系数 System.out.println("请输入一元二次方程的系数:"); Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double c = sc.next