1class Test02 { 2 3 public static void main(String[] args) { 4 int total = 0; 5 for (int i = 1; i <= 100; ++i) { 6 total += i; 7 } 8 System.out.println(total); 9 } 10} 11