#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int v1[20], v2[20], n;
int main(){
srand(time(NULL));
for(int i=0; i<=19; i++){
n=rand()/100;
v1[i]=n;
v2[i]=v1[i]*5;
}
cout<<"Vec 1 (numeros no multiplicados)"<<endl;
for(int i=0; i<=19; i++){
cout<<v1[i]<<endl;
}
cout<<endl;
cout<<"Vec 2 (numeros multiplicados)"<<endl;
for(int i=0; i<=19; i++){
cout<<v2[i]<<endl;
}
system ("PAUSE");
return 0;
}
No hay comentarios.:
Publicar un comentario