Kurso de Raku / Esencoj / Bazoj de la regofluo / Bukloj / Uzante until

Kvizo — la until buklo

1

What does this program print?

my $n = 0;
until $n > 5 {
    $n++;
}
say $n;
6Respondo: (: 4, 5, 6 :)

2

How to make this program to have precisely five iterations?

.my $n = 1;
6 5until $n == ␣ {
.    say $n;
.    $n++;
.}

Kursa navigado

Uzante until   |   Uzante repeat