Advertisement
SergeyPGUTI

7.1.3

Nov 27th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6.  void ShowArray(int array[],int size)
  7. {
  8.     int *start=array;
  9.     int *end=array+size;
  10.     for(int i=0;start!=end;start++)
  11.     {
  12.         cout<<*start<<" ";
  13.     }
  14. }
  15.  
  16. int main()
  17. {
  18.     int n;
  19.     cin>>n;
  20.     int *Mas=new int[n];
  21.     for (int i=0;i<n;i++)
  22.     {
  23.         cin>>Mas[i];
  24.     }
  25.     ShowArray(Mas,n);
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement