C ++ data sample

0

Thanks to my colleague Silvio Colman, I have been able to reorganize my exercise, and mount the project well now the part where if I have an error is in:

Calculate the number of elements that are in a range within the orderly sample (for example, determine how many values of the sample are between 50,000 and 100,000). for now I'm going

#include <iostream>
#include<cstdlib>
#include <conio.h>
using namespace std;
void muesaleat();
int main (){
muesaleat();


}
void muesaleat(){
   int a,b,tm;
     cout<<"Ingrese limite inferior"<<endl;
     cin>>a;
     cout<<"Ingrese limite superior"<<endl;
     cin>>b;
     cout<<"Ingrese tamanho de muestra"<<endl;
     cin>>tm;

    for(int i=0; i<tm; i++)
    {
       int m= a+rand()%(b-a+1);
       cout<<"Los numeros de muestras son:"<<m<<endl;
    }
 system("PAUSE");
    }

If I have errors, I'll just apologize in this world of programming

    
asked by alex2546 09.05.2017 в 07:21
source

0 answers