The for loop is used to execute a block of code repeatedly for a fixed number of times.
for (initialization; condition; increment/decrement) {
// code to be executed
}
void main() {
for (int i = 0; i < 5; i++) {
print('Iteration $i');
}
}