C Programs
Search This Blog
Saturday, 23 September 2017
C Program to Check leap year is leap or not
/* Finding year is leap or not */
#include<stdio.h>
#include<conio.h>
void main()
{
int year;
clrscr();
printf("Enter year : ");
scanf("%d",&year);
if(year%4==0)
printf("\n %d is leap year",year);
else
printf("\n %d is Not leap year",year);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment