Advertisement
Josif_tepe

Untitled

Mar 15th, 2024
555
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 <cmath>
  3. #include <vector>
  4. using namespace std;
  5. int main() {
  6.    
  7.     vector<int> v;
  8.  
  9.     v.push_back(1);
  10.     v.push_back(2);
  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