fix(csharp): while loop II comment (#1052)

This commit is contained in:
hpstory 2024-01-17 15:26:41 +08:00 committed by GitHub
parent 0d294b1731
commit 85f0071c2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ public class iteration {
int WhileLoopII(int n) { int WhileLoopII(int n) {
int res = 0; int res = 0;
int i = 1; // 初始化条件变量 int i = 1; // 初始化条件变量
// 循环求和 1, 2, 4, 5... // 循环求和 1, 4, 10, ...
while (i <= n) { while (i <= n) {
res += i; res += i;
// 更新条件变量 // 更新条件变量