Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ctime>
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- #include <windows.h>
- using namespace std;
- int x;
- int main()
- {
- cout<<"podaj ilosc liczb do sortowania ";
- srand (time(NULL));
- cin>> x;
- int tab[x];
- for (int n=0; n<x; n++)
- {
- cout<<"wylosowana liczba to: ";,
- tab[n]=rand()%48+1;
- cout<<tab[n]<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement