刚注册好,来混一波水

#include<iostream>
using namespace std;
int main()
{
       int year;
    cout<<"输入年份:"<<endl;
    cin>>year;
    if (year%4==0&&year%100!=0||year%400==0)
        cout<<"y"<<endl;
    else  cout<<"n"<<endl;
    return 0;
}
View Code

这个明天要学透!!

posted @ 2017-07-26 21:22  kilutou  阅读(45)  评论(0)    收藏  举报