Skip to content

Commit

Permalink
fix(csharp): while loop II comment (krahets#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpstory authored Jan 17, 2024
1 parent 0d294b1 commit 85f0071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codes/csharp/chapter_computational_complexity/iteration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int WhileLoop(int n) {
int WhileLoopII(int n) {
int res = 0;
int i = 1; // 初始化条件变量
// 循环求和 1, 2, 4, 5...
// 循环求和 1, 4, 10, ...
while (i <= n) {
res += i;
// 更新条件变量
Expand Down

0 comments on commit 85f0071

Please sign in to comment.