Курс языка программирования Raku / Основы / Основы порядка выполнения / Циклы / Exercises
Вывод, пока не хватит
Problem
Write a program that repeatedly asks to enter a word and prints it in
the terminal. If the word is enough, the program terminates
and prints a final message.
Example
The program may run infinitely long, but here we only show a couple of iterations.
$ raku echo-until-enough.raku
Your word: language
language
Your word: coding
coding
Your word: enough
OK, done.Solution
Навигация по курсу
← Решение: Числа Фибоначчи | Решение: Вывод, пока не хватит →