public class java6_7 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
float score=56.0f;
if(score>100||score<0)
System.out.println("false");
if(score>50&&score<60)
System.out.println("do not pass the exam");
}
}
if语句在判定后会产生一个值:true or false !
最新推荐文章于 2022-08-24 18:13:11 发布