The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
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
}
C program to find out whether a given year is a leep year or not
2012-05-24T14:21:00-07:00
Neeraj Mishra
if/else|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)