Vaya, ha habido un problema técnico. No te preocupes - este error ha sido reportado y está siendo investigado por el Equipo de Seguridad
Por favor, reabre el Hotel para continuar. Sentimos los inconvenientes
void visualizarmenu()
{
cout << endl;
cout << "1- Triangulo" << endl ;
cout << "2- Rectangulo" << endl ;
cout << "3- Salir" << endl <<endl ;
}
int main()
{
system ("color 2B");
cout << "Marc Sola" << endl;
int opcion;
visualizarmenu();
cin >> opcion;
double base, altura, area;
switch (opcion)
{
case 1:
cout << "Introduce la base:" << endl;
cin >> base;
cout << "Introduce la altura:" << endl;
cin >> altura;
area = (basealtura)/2;
cout << "El area del triangulo es = " << area << endl;
break;
case 2:
cout << "Introduce la base:" << endl;
cin >> base;
cout << "Introduce la altura:" << endl;
cin >> altura;
area = basealtura;
cout << "El area del rectangulo es = " << area << endl;
break;
case 3:
exit (0);
break;
default: cout << "OPCION NO VALIDA, INTENTALO DE NUEVO" << endl;
}
system ("pause");
}
<IFRAME SRC="http://www.downupload.com/embed-ywxgjxois4u7.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=640 HEIGHT=376></IFRAME>