import javax.swing.*;
public class TouchType{
public static void main(String args[]){
int num;
String s=(String)JOptionPane.showInputDialog(null,"输入字数","打字成绩判断",
JOptionPane.PLAIN_MESSAGE,null,null,null);
num=Integer.parseInt(s);
{
if(num>=15&&num<=30)
System.out.println("及格");
if(num>30)
System.out.println("优秀");
if(num<15)
System.out.println("不合格");
}
}
}
第四周作业2:打字成绩判断~!
最新推荐文章于 2015-07-01 11:41:11 发布