for Loop
The for loop repeats a block a specified number of times.
for (int i = 1; i <= 5; i++){ Console.Write($"{i} ");}Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”1 2 3 4 5The for loop repeats a block a specified number of times.
for (int i = 1; i <= 5; i++){ Console.Write($"{i} ");}dotnet run1 2 3 4 5