#include<iostream>
using namespace std;
int main()
{
int year{};
cin>>year;
if(year%4==0)
if(year%100!=0)
cout<<"Yes"<<endl;
}
else if (year%400==0)
else
cout<<"No"<<endl;
return 0;
Объяснение:
#include<iostream>
using namespace std;
int main()
{
int year{};
cin>>year;
if(year%4==0)
{
if(year%100!=0)
{
cout<<"Yes"<<endl;
}
else if (year%400==0)
{
cout<<"Yes"<<endl;
}
else
{
cout<<"No"<<endl;
}
}
else
{
cout<<"No"<<endl;
}
return 0;
}
Объяснение: