#include <iostream>
using namespace std;
int main(){
int year;
cout<<"Enter the year :";
cin>>year;
if (year%4==0)
cout <<"\n"<<year <<" is leap year ";
else
cout <<"\n"<<year <<" is not a leap year ";
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: