#include <conio.h>
#include <iostream>
#include <stdlib.h>
#include <math.h>
using namespace std;
int main() {
int opc;
mr:
system("cls");
cout << "\t\t\t********************************************\n\n";
cout << "\t\t\t\t\t General Menu \n\n";
cout << "\t\t\t********************************************\n\n";
cout << "\t\t\t\t ^ Chose one number, please ^ \n\n";
cout << "\t\t\t********************************************\n\n";
cout << " 1. Program 16 \n";
cout << " 2. Program Inch to cm \n";
cout << " 3. Program 3 \n";
cout << " 4. Program 4 \n";
cin >> opc;
switch (opc) { //inicio del menu
case 1:
cout << "Print from 1 to 10 except the 5 !\n";
int i;
for (i = 1; i <= 10; i++)
if (i == 5)
continue;
else
printf("%d \n\n", i);
break;
case 2:
cout << "Inches to centimetres!\n";
#include <iostream>
float pulgadas;
cout << "\nInches:";
cin >> pulgadas;
cout << pulgadas << " Inches are " << pulgadas * 2.54 << " centimeters" << endl;
break;
case 3:
cout << "Welcome to program 3!\n";
string frase;
int n;
cout << "Digite una frase:\n";
cin >> frase;
cout << "Ahora digite un numero: ";
cin >> n;
for (int i = 1; i <= n; i++)
cout << frase << endl;
break;
case 4:
cout << "Welcome to program 4!\n";
break;
}
//cierre del menu
cout << "\t*****************************************************************\n";
cout << "\t Do you want to return at the menu, press 1 for yes or 2 for not\n";
cout << "\t*****************************************************************\n";
int resp; cin >> resp;
if (resp == 1) {
goto mr;
}
else {
cout << "Babe i'm gonna leave you";
}
}