Write a programming C to Check Enter Year Is a Leap Year & Not Leap Year.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int year;
printf("\n Enter A Year");
scanf("%d",&year);
if (year %4 == 0)
{
printf("\n Enter The Year is Leap Year");
}
else
{
printf("\n Enter The Year is Not Leap Year");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int year;
printf("\n Enter A Year");
scanf("%d",&year);
if (year %4 == 0)
{
printf("\n Enter The Year is Leap Year");
}
else
{
printf("\n Enter The Year is Not Leap Year");
}
getch();
}
Comments
Post a Comment