#9489: HELP!!!:WA


tonyanddavid (vtshpgming)


#include<iostream>
using namespace std;
int main(void)
{
int year;
while(cin>>year)
{
if(year%4==0)
{
if(year%100==0)
{
if(year%400==0)
cout<<"閏年";
else
cout<<"平年"; 
}
else
cout<<"閏年";
}
else
cout<<"平年";
}
return 0;
}
這是我的程式,但是系統一直出現WA... 
#9498: Re:HELP!!!:WA


anandrewboy70900 (ShowTsai)


#include<iostream>
using namespace std;
int main(void)
{
int year;
while(cin>>year)
{
if(year%4==0)
{
if(year%100==0)
{
if(year%400==0)
cout<<"閏年" << endl;
else
cout<<"平年"<< endl
}
else
cout<<"閏年"<< endl;
}
else
cout<<"平年"<< endl;
}
return 0;
}
要換行喔ㄏㄏ