----------------------------------------------------------
#include <stdio.h>
int main()
{
int year;
printf("Enter year : ");
scanf("%d", &year);
if(year % 4 == 0)
{
printf("LEAP YEAR");
}
else
{
printf("COMMON YEAR");
}
return 0;
}
----------------------------------------------------------
number is even or odd
find Leep year
#include <stdio.h>
int main()
{
int year;
printf("Enter year : ");
scanf("%d", &year);
if(year % 4 == 0)
{
printf("LEAP YEAR");
}
else
{
printf("COMMON YEAR");
}
return 0;
}
----------------------------------------------------------
number is even or odd
2 comments:
Good it's too help full
GREAT !!!!
Post a Comment