ackage com.HuanXin.JiBen_JieGou;标签:输出,int,System,Demo15,println,100,out From: https://www.cnblogs.com/CHX249/p/16754874.html
public class Demo07_While1 {
public static void main(String[] args) {
//求出1+2+3+4++100=?
int A=0;
int B=0;
while (A<100) {//大条件
A = A + 1;//小条件
B = A + B;//小条件
System.out.println(B);
System.out.println(A);
}System.out.println(B);//输出大小条件的并集
}
}