Course of Raku / Essentials / Control flow essentials / Conditional checks / Exercises
Plural ending
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
Course navigation
← Quiz — Ternary operator | Solution: Plural ending →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська