Guest User

Untitled

a guest
Feb 29th, 2020
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5. short variable_number; //La cantidad de variables a crear
  6. cin >> variable_number; //Leer la cantidad
  7. int *my_var = new int[variable_number]; //Crear nuevas variables en el arreglo
  8. for(int i = 0; i< variable_number; i++)
  9. {
  10. my_var[i] = 1;
  11. }
  12. return 0;
  13. }
RAW Paste Data