Demo17_for循环

//for循环基础理解
package com.HuanXin.JiBen_JieGou;

public class Demo09_For {
public static void main(String[] args) {
int a=1;
while (a<=100){
System.out.println(a);
a++;
}
System.out.println("===============================");
for (int i = 1; i <=100; i++) {
System.out.println(i);
}
System.out.println("for循环结束");
}
}
//100.for+回车就可以快速打出第12行代码
//可以运用100.foe快速表示条件
posted @ 2022-10-05 00:01  陈焕新  阅读(41)  评论(0)    收藏  举报