#include <iostream>
#include <stdlib.h>
#include <windows.h>
using namespace std;
main(){
int a,b,x;
char aux=0;
do{
regreso1: /* AQUÍ DEBERÍA SALTAR */
cout << " ************** Menu **************" << endl << endl;
cout << " Sistema Actual ----> Decimal" <<endl;
cout << "1-Cambiar Sistema" << endl;
cout << "2-Sumar" << endl;
cout << "3-Restar" << endl;
cout << "4-Multiplicar" << endl;
cout << "5-Dividir" << endl;
cout << "6-Salir" << endl << endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
if (x>6){
cout <<"Obcion No Valida";
Sleep(1000);
}
system("CLS");
switch(x){
case 1:
do{
cout << " -- Cambiar Sistema --" <<endl <<endl;
cout << "1-Binario" << endl;
cout << "2-Hexadecimal" << endl;
cout << "3-Octal" << endl;
cout << "4-Regresar" << endl <<endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
if (x>4){
cout <<"Obcion No Valida";
Sleep(1000);
}
system("CLS");
switch(x){
case 1:
do{
regreso2:
cout << " ************** Menu **************" << endl << endl;
cout << " Sistema Actual ----> Binario" <<endl;
cout << "1-Cambiar Sistema" <<endl;
cout << "2-Sumar" <<endl;
cout << "3-Restar" <<endl;
cout << "4-Multiplicar" <<endl;
cout << "5-Dividir" <<endl;
cout << "6-Salir" <<endl <<endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
system("CLS");
switch(x){
case 1:
do{
cout << " -- Cambiar Sistema --" <<endl <<endl;
cout << "1-Decimal" << endl;
cout << "2-Hexadecimal" << endl;
cout << "3-Octal" << endl;
cout << "4-Regresar" << endl <<endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
if (x>4){
cout <<"Obcion No Valida";
Sleep(1000);
}
system("CLS");
break;
switch(x){
case 1: /* ESTA ES LA OBCION QUE ESCOJO*/
goto regreso1;
break;
case 2:
goto regreso3; /*ESTAS OPCIONES TAMPOCO*/
break; /*FUNCIONAN*/
case 3:
goto regreso4;
break;
case 4:
goto regreso2;
break;
}
}while(x>4);
}
}while(x>6);
case 2:
do{
regreso3:
cout << " ************** Menu **************" << endl << endl;
cout << " Sistema Actual ----> Hexadecimal" <<endl;
cout << "1-Cambiar Sistema" <<endl;
cout << "2-Sumar" <<endl;
cout << "3-Restar" <<endl;
cout << "4-Multiplicar" <<endl;
cout << "5-Dividir" <<endl;
cout << "6-Salir" <<endl <<endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
system("CLS");
}while(x>6);
break;
case 3:
regreso4:
cout << " ************** Menu **************" << endl << endl;
cout << " Sistema Actual ----> Octal" <<endl;
cout << "1-Cambiar Sistema" <<endl;
cout << "2-Sumar" <<endl;
cout << "3-Restar" <<endl;
cout << "4-Multiplicar" <<endl;
cout << "5-Dividir" <<endl;
cout << "6-Salir" <<endl <<endl;
cout << "Seleccione Opcion: ";
cin >> x;
cout << endl << endl;
system("CLS");
case 4:
goto regreso1;
break;
}
}while(x>4);
break;
case 2:
cout << "Ingrese Numero 1" << endl;
cin >> a;
cout << "Ingrese Numero 2" << endl;
cin >> b;
cout << "La Suma Es: " << a << " + " << b << " = " <<a+b << endl <<endl;
system("pause");
return 0;
system("CLS");
break;
case 3:
cout << "Ingrese Numero 1" << endl;
cin >> a;
cout << "Ingrese Numero 2" << endl;
cin >> b;
cout << "La Resta Es: " << a << " + " << b << " = " <<a-b <<endl <<endl;
system("pause");
return 0;
system("CLS");
break;
case 4:
cout << "Ingrese Numero 1" << endl;
cin >> a;
cout << "Ingrese Numero 2" << endl;
cin >> b;
cout << "La Multiplicacion Es: " << a << " * " << b << " = " <<a*b <<endl <<endl;
system("pause");
return 0;
system("CLS");
break;
case 5:
cout << "Ingrese Numero 1" << endl;
cin >> a;
cout << "Ingrese Numero 2" << endl;
cin >> b;
cout << "La Division Es: " << a << " / " << b << " = " <<a/b <<endl <<endl;
system("pause");
return 0;
system("CLS");
break;
case 6:
cout << "Fin Del Programa";
break;
}
}while(x>6);
}