5.
|
Determine
whether given year is leap year or not.
|
#include<stdio.h>
#include<conio.h>
void main()
{
int c;
clrscr();
printf("Enter Any Year=");
scanf("%d",&c);
if(c%4==0 && c%100!=0)
printf("The Year is Leap Year");
else
printf("the Yeas is Not A Leap Year");
getch();
}
Comments
Post a Comment