programming-examples/perl/Statement/Using my inside for statement.pl
2019-11-15 12:59:38 +01:00

5 lines
113 B
Raku

$factorial = 1;
for (my $loop_index = 1; $loop_index <= 6; $loop_index++) {
$factorial *= $loop_index;
}