do{
//代码语句
}while(布尔表达式)
package JAVASE.struct;
public class DoWhile01 {
public static void main(String[] args) {
int i = 0;
int s = 0;
do {
s = s + i;
i++;
}while(i<=100);
System.out.println(s);
}
}
2021.8.7
原文:https://www.cnblogs.com/Walf1234/p/15113397.html