JakubKaczmarek_123

zadanie 3

Feb 19th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4.  
  5. using namespace std;
  6. int tablica[10];
  7. int main(){
  8.     srand(time(NULL));
  9. for (int i = 0; i < 10; i++) tablica[i] = rand()%50+1;
  10. for (int i = 0; i < 10; i++) cout << tablica[i] << endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment