Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main(){
- int vector[10];
- int aleatorio = rand()%10+1;
- for(int i =0; i<10; i++){
- vector[i] = aleatorio;
- aleatorio = rand()%10+1;
- }
- cout << "Valores de los vectores \n\n" ;
- for(int i =0; i<10; i++ ){
- cout << vector[i] << endl;
- }
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement