嵌套语句

//import java.util.Scanner;
public class IfDemo
{
     public static void main(String args[])
	 {
	      int iScore=78;
		  String sGrade;
		  if(iScore>=90)
			sGrade="you";
			else if(iScore>=80)
			sGrade="liang";
			else if(iScore>=70)
			sGrade="zhong";
			else if(iScore>=60)
			sGrade="jige";
			else
			sGrade="bujige";
			System.out.println("ddddddddddddddd:"+iScore);
			System.out.println("ddddddddddddddd:"+sGrade);
	}
}	
			
			
			

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页