Loops (for / while)
for (includes the end value), while, and multiline body with begin..end.
Simple enough for a 5-year-old to understand
for loop
program H;var i: integer;begin for i := 1 to 3 do writeln(i);end.🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: 1
2
3
4
5