#include<iostream.h>
#include<conio.h>
void main()
{
int a;
clrscr();
cout<<“enter the year”;
cin>>a;
if(a%4==0)
{
cout<<“this is a leap year”;
}
else
{
cout<<“this is not a leap year”;
}
getch();
}
#include<conio.h>
void main()
{
int a;
clrscr();
cout<<“enter the year”;
cin>>a;
if(a%4==0)
{
cout<<“this is a leap year”;
}
else
{
cout<<“this is not a leap year”;
}
getch();
}
No comments:
Post a Comment