Kurso de Raku / Esencoj / Bazoj de la regofluo / Kondiĉaj kontroloj / Exercises

Pluralfinaĵo

Problemo

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.

Ekzemplo

Here is an idea that the program must implement:

$ raku plural-endings.raku
How many files to copy? 15
15 files copied.

Solvo

Vidu la solvon

Kursa navigado

Kvizo — Ternara operatoro   |   Solvo: Pluralfinaĵo