Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. void wypisz(vector<int> tab)
  7. {
  8. for (int i = 0; i < tab.size(); i++)
  9. {
  10. cout << tab[i] << " ";
  11. }
  12. }
  13.  
  14. int main()
  15. {
  16. vector<int> liczby = {8,3,1,5,4};
  17. for (int i = 0; i < 10001; i++)
  18. {
  19. liczby.push_back(i);
  20. }
  21.  
  22. wypisz(liczby);
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement