Created
August 1, 2020 23:58
-
-
Save underdog1987/7df461546b754eaaa19a7ebbb9f5cd2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#include <wchar.h> | |
#include<locale.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
using namespace std; | |
int opcion = 0; | |
int bar = 1; | |
string ciudad; | |
int dias; | |
int main(void){ | |
setlocale(LC_ALL, ""); //codigo que copie para los acentos | |
cout << "Bienvenido al Sistema Viajero Simetrico. Para iniciar ingrese el Numero de Ciudades a Visitar"<<" " "\n"; | |
cin >> opcion; //declaracion variable de los opciones | |
if (opcion > 0 && opcion <= 20 ){ | |
do{ | |
cout << "Ingrese la ciudad"<<" " "\n" ; | |
cin >> ciudad; | |
cout << "Ingrese los dias que estaran hospedado"<<" " "\n" ; | |
cin >> dias; | |
cout<<ciudad <<" " "\n"; | |
bar++; | |
}while (bar<=opcion ); | |
}else{ | |
cout << "Ingreso una opción no valida intentelo de nuevo"<<" " "\n" ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment