Discuss / Java / 答案

答案

Topic source

亦轩

#1 Created at ... [Delete] [Delete and Lock User]
 public static void main(String[] args) {  Scanner scanner = new Scanner(System.in);     System.out.println("输出上次考试");   int score = scanner.nextInt();     System.out.println("输出本次考试");    int scoreTwo = scanner.nextInt();double num = (double) (scoreTwo - score)*100;double numt = num/(double) score;     System.out.printf("本次输出得成绩为,%.2f\n",numt);

  • 1

Reply