Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
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;
metalocean
2018-01-21
0
1
No more~