Python-100-Days/番外篇/code/Test02.java

10 lines
202 B
Java

class Test02 {
public static void main(String[] args) {
int total = 0;
for (int i = 1; i <= 100; ++i) {
total += i;
}
System.out.println(total);
}
}