2013年9月13日

C++闰年计算

摘要: #include using namespace std;void main(){ int year; cout>year; if(year%4==0 && year%100!=0 || year%400==0){ cout<<"闰年"<<endl; } else{ cout<<"平年"<<endl; } getchar();} 阅读全文

posted @ 2013-09-13 09:15 kevinDING 阅读(1401) 评论(0) 推荐(0)

导航