Advertisement
Guest User

Untitled

a guest
Oct 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <cstdlib>
  4. using namespace std;
  5.  
  6. int main()
  7. { srand(time(0));
  8.  const int N=20;
  9.  int t[N];
  10.  int i;
  11.  for(i=0;i<N;++i)
  12.  {
  13.     t[i]=rand();
  14.     //to co bylo tutaj usuwamy
  15.  }
  16.  
  17.  int v, V;
  18.  
  19.  
  20.  // nowa pętla która wyświetla zawartość tablicy
  21.  for(int i = 0; i < N; i++){
  22.     cout << t[i] << endl;
  23.  
  24.  }
  25.  
  26.  
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement