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