public class 新人{ public static void main(string args[]) { int x = 1; int sum = 0; While (x <= 100) { sum += x; x++; } System.out.println("1-->100累加” + sum); } }