Thursday 24 May 2012

C program to find out whether a given year is a leep year or not




#include<stdio.h>
#include<conio.h>


void main()
{
int year;
clrscr(); //to clear the screen

printf("Enter any year(4-digit):");
scanf("%d",&year);
if(year%4==0)
printf("\nLeep Year");
else
printf("\nNot leep year");
getch(); //to stop the screen
}


Related Posts Plugin for WordPress, Blogger...