built-in method

Δίσεκτο έτος
Δίσεκτο έτος στη διαδρομή PowerShell
function Test-Leap([int] $year) {
    [DateTime]::IsLeapYear($year)
}

Utilizing the DateTime class from .NET, you can determine if a year is a leap year or not by passing it into the IsLeapYear static method. This might not be the intended approach for learning, but it is an idiomatic way to check if a year is leap or not.

IsLeapYear method.

Translation missing: el.number.nth.ordinalized Sep 2026 · Σου φάνηκε χρήσιμη;

Άλλες προσεγγίσεις για την άσκηση Δίσεκτο έτος στη διαδρομή PowerShell

Άλλοι τρόποι με τους οποίους η κοινότητά μας έλυσε αυτή την άσκηση