Объяснение:
#include <iostream>
using namespace std;
int main() {
int year;
cin >> year;
if (year % 4 == 0) {
if (year % 100 == 0) {
if (year % 400 == 0) cout << "366 days\n";
else cout << "365 days\n";
}
else cout << "366 days\n";
Объяснение:
#include <iostream>
using namespace std;
int main() {
int year;
cin >> year;
if (year % 4 == 0) {
if (year % 100 == 0) {
if (year % 400 == 0) cout << "366 days\n";
else cout << "365 days\n";
}
else cout << "366 days\n";
}
else cout << "365 days\n";
}