mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 14:18:20 +08:00 
			
		
		
		
	fix(csharp): while loop II comment (#1052)
This commit is contained in:
		@ -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;
 | 
				
			||||||
            // 更新条件变量
 | 
					            // 更新条件变量
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user