Ответ:
#include <iostream>
#include <vector>
#define ll long long
using namespace std;
int main()
{
int n; cin >> n;
if (n == 12 || n == 1 || n == 2)
cout << "winter";
}
else if (n == 3 || n == 4 || n == 5)
cout << "spring";
else if (n == 6 || n == 7 || n == 8)
cout << "Summer";
else if (n == 9 || n == 10 || n == 11)
cout << "autumn";
return 0;
print("Введите номер месяца: ")
number = int(input())
if number == 12 or number == 1 or number == 2:
print ("Зима")
elif number == 3 or number == 4 or number == 5:
print ("Весна")
elif number == 6 or number == 7 or number == 8:
print ("Лето")
elif number == 9 or number == 10 or number == 11:
print ("Осень")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
#include <iostream>
#include <vector>
#define ll long long
using namespace std;
int main()
{
int n; cin >> n;
if (n == 12 || n == 1 || n == 2)
{
cout << "winter";
}
else if (n == 3 || n == 4 || n == 5)
{
cout << "spring";
}
else if (n == 6 || n == 7 || n == 8)
{
cout << "Summer";
}
else if (n == 9 || n == 10 || n == 11)
{
cout << "autumn";
}
return 0;
}
print("Введите номер месяца: ")
number = int(input())
if number == 12 or number == 1 or number == 2:
print ("Зима")
elif number == 3 or number == 4 or number == 5:
print ("Весна")
elif number == 6 or number == 7 or number == 8:
print ("Лето")
elif number == 9 or number == 10 or number == 11:
print ("Осень")