C Program with Algorithm to check whether the given year is a leap year or not

#include<stdio.h>
#include<conio.h>
void main()
{
int year;
clrscr();
printf("\nEnter the year : ");
scanf("%d",&year);
if((year%4==0)&&((year%100!=0)||(year%400==0)))
printf("\nThe year %d is leap year",year);
else
printf("\n The year %d is not leap year",year);
getch();
}


Algorithm
step 1: Start
step 2: Read year
step 3: if year%4=0 and year%100!=0 or if year%4=0 and year%400=0   then  go to step 4
else go to step5
step 4: print a leap year
step 5: print not a leap year
step 6: Stop