Advertisement
Josif_tepe

Untitled

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