📜  正整数的 ujava saum - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:44.003000             🧑  作者: Mango

代码示例1
int num = 10, count, total = 0;

       for(count = 1; count <= num; count++){
           total = total + count;
       }