Курс по Raku / Основи / Основи на функциите / Вградени функции за принтиране / Exercises
Принтирайте предупреждението
Problem
Create a program that asks for your age and prints one or two
warnings if the entered value is negative. Make sure the warning is
printed to STDERR.
Example
A couple of possible cases:
$ raku print-the-warning.raku
What is your age? 20
Your age is 20
$ raku print-the-warning.raku
What is your age? -1
You entered a negative number!Solution
Навигация в курса
← Решение:
Сравнете say и put | Решение:
Принтирайте предупреждението →