Dart Program to Find if a Given Year is a Leap Year or Not
Dart is the most popular programming language & is the language of choice for Android & IOS programming using flutter SDK.
In this blog we will write a program to find if a Given Year is a Leap Year or Not in dart
Leap Year:
We first whether the given year is divisible by 400 or not. If it is divisible then it is a leap year else we check for further conditions. Now if it is divisible by 100 then it is not a leap year or else we further divide it by 4. If it is divisible then it is a leap year else its not.
Here is the source code of the Dart Program to Find if a Given Year is a Leap Year.