Advertisement
Josif_tepe

Untitled

Nov 18th, 2022
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. int main()
  5. {
  6.     vector<int> v;
  7.     v.push_back(10);
  8.    
  9.     int x = 15;
  10.     v.push_back(x);
  11.  
  12.     for(int i = 0; i < v.size(); i++) {
  13.         cout << v[i] << " ";
  14.     }
  15.    
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement