#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int y;
cin>>y;
if(y%4==0){
cout<<"a leap year";
}
else{
cout<<"a normal year";
}
}
#include
using namespace std;
int main(int argc, char** argv) {
int y;
cin>>y;
if(y%4==0){
cout<<"a leap year";
}
else{
cout<<"a normal year";
}
}
你的條件錯誤了
沒有這麼單純
" 西元年被4整除且不被100整除,或被400整除者即為閏年 “