Cursus Raku / Elementa / Ansae / Utendo while

Quiz — while ansa

1

Quid hoc programma imprimit?

my $n = 10;
while $n {
    $n--;
}
say $n;
0 Responsum: (: 0, 1, −1 :)

2

Quomodo hoc programma prohibetur ne infinite currat? Fac mutationes necessarias in codice.

. my $n = 5;
. my $a = 10;
. while $n {
n a     say $␣--;
. }

Cursus navigatio

Ansae   |   Ansae / Utendo until


💪 Or jump directly to the exercises to this section.

Haec pagina automatice translata est per ChatGPT 4o. Originalis Anglicus textus

Translationes huius paginae: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська