Ответ:
#include
using namespace std;
enum myenum { const1 = 5, const2 = 4, const3 = 3, const4 = 2, const5 = 1, const6 = 0 };
int main() {
int a;
cin >> a;
switch (a)
{
case const1:case const2:case const3:
cout
break;
case const4:case const5:case const6:
cout
break;
default:
cout << "Error!";</p>
break;
}
}
Объяснение: