/*PROGRAM TO FIND WHETHER A GIVEN YEAR IS LEAP YEAR OR NOT.*/

#include 
#include 
void main()
{
int year,leap;
clrscr();
printf("enter the year:- ");
scanf("%d",&year);
if ((year%100)==0)
leap=(year/400)*400;
else
leap=(year/4)*4;
if (leap==year)
printf("%d is a leap year.",year);
else
printf("%d is not a leap year.",year);
getch();
}

Related Posts

आज से विश्व कप का आगाज: रिजर्व-डे से लेकर सुपरओवर तक, 17 पॉइंट्स में जानें इस टूर्नामेंट से जुड़ी हर ...
worldeye
October 6, 2023
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ...
worldeye
January 23, 2022
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore ...
worldeye
January 23, 2022