Курс по Raku / Основи / Основи на управлението на потока / Условни проверки / Exercises

Високосна година

Problem

Write a program that tells if the given year is a leap year. Use prompt to enter a year.

Example

An example of the output for the two cases of when the year is leap and when it is not.

$ raku leap-year.raku
Year: 2000
Leap year

$ raku leap-year.raku
Year: 2021
Common year

Solution

See the solution

Навигация в курса

Решение: Колко числа са равни?   |   Решение: Високосна година