#include <stdio.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int x;
while(true)
{
cin >> x;
if(x%400==0)
{
cout << "閏年" << endl;
}
else
{
cout << "平年" << endl;
}
}
}
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
int x;
while(true)
{
cin >> x;
if(x%400==0)
{
cout << "閏年" << endl;
}
else
{
cout << "平年" << endl;
}
}
}
while(cin>>s) 試看看
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
int x;
while(true)
{
cin >> x;
if(x%400==0)
{
cout << "閏年" << endl;
}
else
{
cout << "平年" << endl;
}
}
}
while(cin>>s) 試看看
謝謝