public class Option{
public static void main(String []args){
int a=90;
//单分支结构 :if(判断句){}
if (a>=90){
System.out.println("优秀");
}
// 双分支结构 : if(判断句){}else{}
if (a>=90){
System.out.println("优秀");
}else{ System.out.println("良好");
}
// 多重分支结构 : if(判断句){}else if (){}else if (){}
if (a>=90){
System.out.println("优秀");
}else if(a>=60){
System.out.println("良好");
}else if(a<60){
System.out.println("差");
}
/* switch多重分支结构 :
switch(目标值){case 目标值1:S.opl;break;case 目标值2:S.opl;break;}*/
switch(a){
case 90:
System.out.println("优秀");
break;
case 70:
System.out.println("良好");
break;
case 60:
System.out.println("差");
break;
}
}
}