PROGRAM TO CHECK WHETHER A YEAR IS LEAP YEAR OR NOT


#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();

printf("enter a number");
scanf("%ld",&n);

if(n<0)
printf("WRONG INPUT");

else if(n%4==0)
printf("LEAP YEAR");

else
printf("NOT A LEAP YEAR" );

getch();

 }
SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS

Comments