#include<stdio.h>
#include<conio.h>
void main()
{
int year;
clrscr();
printf("Enter the year:\n");
scanf("%d",&year);
if (year%4==0)
printf("Its a leap yr");
else
printf("its not a leap yr");
getch();
}
Download the .C File from here
#include<conio.h>
void main()
{
int year;
clrscr();
printf("Enter the year:\n");
scanf("%d",&year);
if (year%4==0)
printf("Its a leap yr");
else
printf("its not a leap yr");
getch();
}
Download the .C File from here
No comments:
Post a Comment