You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
public class Jb15_Function2
|
|
|
|
|
{
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
|
{
|
|
|
|
|
//draw(7,8);
|
|
|
|
|
getLevel(99);
|
|
|
|
|
}
|
|
|
|
|
/*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public static void draw(int row,int col)
|
|
|
|
|
{
|
|
|
|
|
for (int x=1;x<=row ;x++ )
|
|
|
|
|
{
|
|
|
|
|
for (int y=1;y<=col ;y++ )
|
|
|
|
|
{
|
|
|
|
|
System.out.print("*");
|
|
|
|
|
}
|
|
|
|
|
System.out.println();
|
|
|
|
|
}
|
|
|
|
|
return; //<2F>˴<EFBFBD>return<72><6E>ʡ<EFBFBD>ԣ<EFBFBD><D4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͳ<EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>voidʱ<64><CAB1><EFBFBD><EFBFBD>ʡ<EFBFBD><CAA1>return
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
//<2F><><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ȼ<EFBFBD>
|
|
|
|
|
public static void getLevel(int grade)
|
|
|
|
|
{
|
|
|
|
|
if (grade<0 || grade>100)
|
|
|
|
|
{
|
|
|
|
|
System.out.println("<22><><EFBFBD><EFBFBD>");
|
|
|
|
|
}
|
|
|
|
|
else if (grade>=90 && grade<=100)
|
|
|
|
|
{
|
|
|
|
|
System.out.println("A");
|
|
|
|
|
}
|
|
|
|
|
else if (grade>=60 && grade<=89)
|
|
|
|
|
{
|
|
|
|
|
System.out.println("B");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
System.out.println("C");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|