Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<fstream>
- using namespace std;
- int u;
- int funct(int mass[],int size) {
- for (int i = 0; i <size; i++) {
- cout << mass[i]<<endl;
- }
- return 0;
- }
- int main() {
- int i, size;
- cin>>size;
- int *mass = new int[size];
- for (i = 0; i < size; i++) {
- mass[i] = rand()%999+1;
- }
- funct(mass,size);
- delete mass;
- }
Advertisement
Add Comment
Please, Sign In to add comment