# include "iostream"
using namespace std;
int main()
{
cout << "OPRIMA 1 PARA SACAR DINERO: \n";
cout << "OPRIMA 2 PARA CONSULTAR SALDO: \n";
cout << "OPRIMA 3 PARA CAMBIAR DE CONTRASEÑA: \n";
cout << "Ingrese la Opción a ejecutar: ";
int opcion = 0;
cin >> opcion;
switch(opcion)
{
case 1: cout << "A) PARA SACAR 100 \n";
cout << "B) PARA SACAR 100 \n";
cout << "C) PARA SACAR 100 \n";
char retiro;
cin >> retiro;
switch(retiro)
{
case 'a': cout << "Usted retiro 100";
break;
case 'b': cout << "Usted 200";
break;
case 'c': cout << "Usted retiro 1.000.000";
break;
default: cout << "Usted ha ingresado una opción incorrecta";
}
break;
case 2: cout << "Usted ha seleccionado la opción 2";
break;
case 3: cout << "Usted ha seleccionado la opción 3";
break;
default: cout << "Usted ha ingresado una opción incorrecta";
}
// system("PAUSE"); //Solo ponla si no te da error
return 0;
}
#include <iostream>
using namespace std;
int main() {
int numeros[5]; // arreglo de 5 posiciones
cout << "Ingrese 5 números enteros:\n";
for (int i = 0; i < 5; i++) {
cout << "Número " << i + 1 << ": ";
cin >> numeros[i];
}
cout << "\nLos números ingresados son:\n";
for (int i = 0; i < 5; i++) {
cout << numeros[i] << " ";
}
return 0;
}