/** * 需求:基本练习 * 思路:略 * * 步骤:略 */ public class Demo_1{ public static void main(String[] arge){ for(int x=1;x<3;x++) { System.out.println("x="+x); } } }
/** * 需求:基本练习 * 思路:略 * * 步骤:略 */ public class Demo_1{ public static void main(String[] arge){ int x=1; for(System.out.println("a"); x<3; System.out.println("c"))//没有布尔值无法正常输出 System.out.println("d"); x++; } }