learning-perl6/ch2/ex2-8.raku

11 lines
116 B
Raku
Raw Permalink Normal View History

2023-11-12 03:03:05 +00:00
# exercise modified to actually test
my $sum = 0;
for ^10 {
put ++$sum;
}
my $sum2 = 0;
for ^10 {
put $sum2++;
}