Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jackfrued
GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/番外篇/code/Test02.java
2952 views
1
class 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