#include <stdlib.h>
#include <stdio.h>
#include <time.h>
using namespace std;
int aleatorio, j;
int main (){
srand(time(NULL));
for (j=1;j<=30;j++){
aleatorio=1+rand()%(1000);
if (aleatorio>20){
cout<<aleatorio<<endl;
}
}
system ("PAUSE");
return 0;
}
No hay comentarios.:
Publicar un comentario