You are on page 1of 1

using namespace std;

#include <iostream>

int main()
{
int color;
cout<< "indicar un nunero de color" << endl;
cin >> color;
switch (color)
{
case 0: cout << "error de color cero" << endl;
break;
case 1: cout << "color AMARILLO" << endl;
break;
case 2: cout << "color AZUL" << endl;
break;
case 3: cout << "color ROJO" << endl;
break;
default:cout << "color indicado no corresponde a la bandera" << endl;
break;

cout << endl;


system("pause");
return 0;

You might also like