Skip to content

Instantly share code, notes, and snippets.

@underdog1987
Created August 1, 2020 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underdog1987/7df461546b754eaaa19a7ebbb9f5cd2f to your computer and use it in GitHub Desktop.
Save underdog1987/7df461546b754eaaa19a7ebbb9f5cd2f to your computer and use it in GitHub Desktop.
#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