Курс по Raku / Основи / Основи на управлението на потока / Условни проверки / Exercises
Множествено окончание
Task
Write a program that asks the user for a positive integer number and
then prints the phrase N files copied, where N
is the entered number, and the word file is in the correct
form: plural or singular.
Example
Here is an idea that the program must implement:
$ raku plural-endings.raku
How many files to copy? 15
15 files copied.Solution
Навигация в курса
← Тест — Теренарен оператор | Решение: Множествено окончание →