Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- using namespace std;
- int main()
- { srand(time(0));
- const int N=20;
- int t[N];
- int i;
- for(i=0;i<N;++i)
- {
- t[i]=rand();
- //to co bylo tutaj usuwamy
- }
- int v, V;
- // nowa pętla która wyświetla zawartość tablicy
- for(int i = 0; i < N; i++){
- cout << t[i] << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement