Dart Program to Find if a Given Year is a Leap Year or Not

Raushan Jha
1 min readSep 13, 2019

--

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.

--

--

Raushan Jha
Raushan Jha

Written by Raushan Jha

MOBILITY COE HEAD at Think AI Labs LLC.I love to teach the ways of Android & iOS through either java or Flutter.

No responses yet