Advertisement

C Programming


C programming
 A programme to find a year is Leap Year or not:
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("Write a year::");
scanf("%d",&a);
if(a%4==0)
printf("This is a leap Year");
else
printf("This is not a leap Year");
getch();
}

No comments:

Post a Comment

Please comment bellow. Share your knowledge