Guest User

Untitled

a guest
Jan 15th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <conio.h>
  4.  
  5. using namespace std;
  6.  
  7. int ilosc, *tab;
  8.  
  9.  
  10. int main()
  11. {
  12. cout << "Podaj ilosc liczb chcesz wpisac" << endl << ">";
  13. cin >> ilosc;
  14. tab = new int[ilosc];
  15. for (int i = 0; i < ilosc; i++)
  16. {
  17. cout << "Podaj " << i + 1 << " liczbe: ";
  18. cin >> tab[i];
  19. }
  20.  
  21. _getch();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment