programming-examples/perl/Statement/Duplicate the for structure with the foreach keyword.pl
2019-11-15 12:59:38 +01:00

5 lines
94 B
Perl

foreach ( $number = 0; $number <= 20; $number += 5 ) {
print "$number ";
}
print "\n";