fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i,j,n;
  8. cin >> n;
  9. vector<int> arr(n);
  10. for(i = 0; i < n; i++)
  11. {
  12. cin >> arr[i];
  13. }
  14. cout << "The numbers entered are:" << " \n";
  15. for(i = 0; i < n; i++)
  16. {
  17. cout << arr[i] << endl;
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 16064KB
stdin
5
1 5 8 6 7
stdout
The numbers entered are: 
1
5
8
6
7