這樣不行嗎??
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int y;
cin >> y;
if((y%4==0&&y&100!=0)||y%4==0)
cout << "閏年";
else
cout << "平年";
return 0;
}
這樣不行嗎??
#include
using namespace std;
int main(int argc, char** argv) {
int y;
cin >> y;
if((y%4==0&&y&100!=0)||y%4==0)
cout << "閏年";
else
cout << "平年";
return 0;
}
我發現打錯了不用理我!