Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int ilosc, *tab;
- int main()
- {
- cout << "Podaj ilosc liczb chcesz wpisac" << endl << ">";
- cin >> ilosc;
- tab = new int[ilosc];
- for (int i = 0; i < ilosc; i++)
- {
- cout << "Podaj " << i + 1 << " liczbe: ";
- cin >> tab[i];
- }
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment