Check leap year and print nearest leap year.
no vote
#include using namespace std; int lyear(int a); int main(void) { int i,n,j,k,l,m; cin>>n; if(lyear(n)==1) { cout<<"Leap year"; } else { cout<<"Not leap year\nNearest is "; j=n+1; k=n-1; while(1) { j++; k--; l=lyear(j); m=lyear(k); if(l==1) { cout<<j;