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.

23 সেপ্টেম্বর 2026 · কাজে লেগেছে?

PowerShell ট্র্যাকে অধিবর্ষ অনুশীলনীর অন্য অ্যাপ্রোচগুলো

এই অনুশীলনীটি আমাদের কমিউনিটি যেভাবে অন্য ভাবেও সমাধান করেছে