অধিবর্ষ

অধিবর্ষ

একটি বছর অধিবর্ষ কি না, তা নির্ণয় করুন।
অধিবর্ষ নিয়ে ডিপ ডাইভ!

অধিবর্ষ সমাধানে ব্যবহার করা যায় এমন berbagai অ্যালগরিদম ও পদ্ধতির গভীরে ডুব দিন, যেখানে Jeremy আর Erik Exercism-এ ১০টি ভিন্ন ভাষার মজার কমিউনিটি সল্যুশন ঘেঁটে দেখছেন।

নির্দেশনা

A leap year (in the Gregorian calendar) occurs:

  • In every year that is evenly divisible by 4.
  • Unless the year is evenly divisible by 100, in which case it's only a leap year if the year is also evenly divisible by 400.

Some examples:

  • 1997 was not a leap year as it's not divisible by 4.
  • 1900 was not a leap year as it's not divisible by 400.
  • 2000 was a leap year!
Note

For a delightful, four-minute explanation of the whole phenomenon of leap years, check out this YouTube video.

Your task is to determine whether a given year is a leap year.