public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("输入上次考试成绩和本次考试成绩:");
int nextscore=sc.nextInt();
int nowscore=sc.nextInt();
double n=(double) (nowscore-nextscore)/nextscore*100;//储存成绩百分比变量n
System.out.printf("成绩提高百分比:%.2f%%",n);
}