// Zadanie: Napisz program, ktory utworzy histogram sposrod 1000 wygenerowanych liczb pseudolosowych. #include #include #include using namespace std; int main(){ srand (time(0)); int histogram[10]; for(int k=0; k<10; k++) // zerowanie histogramu histogram[k]=0; for(int i=0; i<1000; i++) // wupelnianie histogramu histogram[(rand() % 10)]++; for(int j=0; j<10; j++) // wypisanie histogramu cout<