您的位置:首页 > 其它

第4周作业-打字成绩判断程序

2014-04-14 18:29 253 查看
package work;

import java.util.Scanner;

public class TouchType {
public static void main(String[] args){
Scanner input =new Scanner(System.in);
System.out.println("Enter an int value:");
double score=input.nextInt();
if(score>=30)
System.out.println("grad=15");
else if(score>=15&&score<30)
System.out.println("grad=10");
else if(score<15)
System.out.println("请在4月15日进行补考");
}
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: