From 85f0071c2aa32935d19afa2c0c2e857165bfbb68 Mon Sep 17 00:00:00 2001 From: hpstory <33348162+hpstory@users.noreply.github.com> Date: Wed, 17 Jan 2024 15:26:41 +0800 Subject: [PATCH] fix(csharp): while loop II comment (#1052) --- codes/csharp/chapter_computational_complexity/iteration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/csharp/chapter_computational_complexity/iteration.cs b/codes/csharp/chapter_computational_complexity/iteration.cs index 38ae18cef..0505fb060 100644 --- a/codes/csharp/chapter_computational_complexity/iteration.cs +++ b/codes/csharp/chapter_computational_complexity/iteration.cs @@ -33,7 +33,7 @@ public class iteration { int WhileLoopII(int n) { int res = 0; int i = 1; // 初始化条件变量 - // 循环求和 1, 2, 4, 5... + // 循环求和 1, 4, 10, ... while (i <= n) { res += i; // 更新条件变量