package lil;import java.util.Scanner;public class york {public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("请输入成绩:"); int sum=0; int score=input.nextInt(); System.out.println("成绩:"+score); while(score<60){ score++; sum++; } System.out.println("加分后成绩"+score); System.out.println("共加了"+sum+"分!");}}
添加回答
举报
0/150
提交
取消