10 lines
202 B
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);
|
||
|
}
|
||
|
}
|