hallojih 2021. 1. 26. 15:18

#include <iostream>
using namespace std;

int main()
{
int iYear = 0;

cin >> iYear;

if ((iYear % 4 == 0 && iYear % 100 != 0 ) || iYear % 400 == 0)
{
cout << 1;
}
else
cout << 0;

return 0;
}#include <iostream>
using namespace std;

int main()
{
int iYear = 0;

cin >> iYear;

if ((iYear % 4 == 0 && iYear % 100 != 0 ) || iYear % 400 == 0)
{
cout << 1;
}
else
cout << 0;

return 0;
}

728x90
반응형