An algorithm to check year is leap year or not.

1) START

2) Enter Any Year as Y

3) Check if ( Y%4 = = 0 AND Y %100 != 0 OR Y%400 == 0) then continue Else Goto 6

4) Print Given Year is Leap Year

5) GoTo Step 7

6) Print Given Year is NOT Leap Year

7) END

Flowchart to check year is leap year or not.

Flowchart for Leap year or not
Flowchart for Leap year or not

C Program to check year is leap year or not.

#include<stdio.h> 
void main() 
{ 
int year; 
printf("Enter any year to detect LEAP or NOT Leap:"); 
scanf("%d",&year); if(year%4==0 && year%100!=0 || year%400 ==0) 
printf("The given number is LEAP year : %d",year); 
else 
printf("The given number is NOT leap year : %d ",year); 
}