02

#include<bits/stdc++.h>
using namespace std;
class depend
{
public:
int year;
void input()
{
cout<<"input year:";
cin>>year;
if(year%4==0&&year%100!=0||year%400==0)cout<<"leap year"<<endl;
else cout<<"not leap year"<<endl;
}
};
int main(){
depend y;
y.input();
}

posted @ 2022-10-28 16:28  13763857269  阅读(34)  评论(0)    收藏  举报