Guest User

Untitled

a guest
Jan 16th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include<iostream>
  2. #include<fstream>
  3. using namespace std;
  4. int u;
  5.  
  6.  
  7. int funct(int mass[],int size) {
  8.     for (int i = 0; i <size; i++) {
  9.         cout << mass[i]<<endl;
  10.     }
  11.     return 0;
  12. }
  13. int main() {
  14.     int i, size;
  15.     cin>>size;
  16.     int *mass = new int[size];
  17.  
  18.     for (i = 0; i < size; i++) {
  19.     mass[i] = rand()%999+1;
  20.     }
  21.     funct(mass,size);
  22.     delete mass;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment