jueves, 7 de noviembre de 2019

PROGRAMA 22

#include <iostream>
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
using namespace std;

int main()

{
   int randi,j;
   srand(time(NULL));
   cout<<"IMPRESION DE RANDOM: "<<endl;
   for(j=1;j<=15;j++)
   {
       randi=rand();
    cout<<randi<<endl;
       }
    cout<<"Impresion random entre 100"<<endl;
    for(j=1;j<=15;j++)
    {
        randi=rand()/100;
        cout<<randi<<endl;
    }
    cout<<"Impresion en random entre 1000"<<endl;
     for(j=1;j<=15;j++)
    {
        randi=rand()/1000;
        cout<<randi<<endl;
    }
    system ("Pause");
    }



No hay comentarios.:

Publicar un comentario