Loops (for / while)
Counting with for, iterating lists with foreach, conditional repetition with while.
Simple enough for a 5-year-old to understand
for loop
using System;for (int i = 1; i <= 3; i++) { Console.WriteLine(i);}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 1
2
3
4
5