learning-perl6/ch2/ex2-8.raku

11 lines
116 B
Raku

# exercise modified to actually test
my $sum = 0;
for ^10 {
put ++$sum;
}
my $sum2 = 0;
for ^10 {
put $sum2++;
}