#6463: 誰可以幫我改一下哪裡出錯了 c++


r1812004 (kuo)


#include <iostream>
using namespace std;
int main()
{
    int x ;
    while(cin>>x)
    {
     if(x%4 == 0)
     cout<<"閏年"<<endl;
     else if(x%100==0 && x%400==0)
     cout<<"平年"<<endl;
     else
     cout<<"平年"<<endl;}
     system("pause");
     return 0;
     }