#include <iostream>
using namespace std;
int main()
{
int32_t a;
setlocale(LC_ALL, "Rus");
cout << "Введите год" << endl; cin >> a;
if (a > 2001 && a <= 2100)
cout << "21 век" << endl;
else
cout << "Другой век" << endl;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main()
{
int32_t a;
setlocale(LC_ALL, "Rus");
cout << "Введите год" << endl; cin >> a;
if (a > 2001 && a <= 2100)
cout << "21 век" << endl;
else
cout << "Другой век" << endl;
return 0;
}