Write a C++ program to find the year is leap year or not Test Case 1 Input (stdin) 2000 Expected Output The year is leap year Test Case 2 Input (stdin) 2111 Expected Output The year is not leap year
#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a%4==0)
cout<<"The year is leap year";
else
cout<<"The year is not leap year";
return 0;
}