import java.util.*;
import java.io.*;
class JPA208 {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
try{
test();
test();
test();
test();
test();
}
catch(IOException e){
}
}
public static void test() throws IOException {
System.out.println("Input:");
int x = keyboard.nextInt();
if(x>=90){
System.out.println("Ypur grade is A");
}
else if(x<90&&x>=80){
System.out.println("Ypur grade is B");
}
else if(x<80&&x>=70){
System.out.println("Ypur grade is c");
}
else if(x<70&&x>=60){
System.out.println("Ypur grade is D");
}
else{
System.out.println("Ypur grade is F");
}
}
}
208 分級制度
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言