if语句(1)

package if条件语句;
public class Example {
     public static void main(String[] args){
          int x=5;
          if(x<10) {
          x++;
    }
        System.out.println("x="+x);
   }
}

结果:

 

posted on 2020-10-14 16:19  张德明  阅读(138)  评论(0)    收藏  举报