We can use for loop with a step: for (var i = 1; i <= n; i+=3) { Console.WriteLine(i); }. The while / do-while loops are repeated while a condition is true:
確定! 回上一頁