📜  Java 程序查找前 100 个数字的总和 - Java 代码示例
📅  最后修改于: 2022-03-11 14:52:36.898000             🧑  作者: Mango
代码示例1
int sum = 0;
for(int i = 1; i <= 100; i++) {
sum = sum + i;
}
System.out.println("Sum of first 100 numbers is : " + sum);