Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int tablica[10]; // deklaracja tablicy typu int o 10 elementach
- cout << "Podaj 10 liczb, ktore zostana wpisane do tablicy.\n";
- for(int i = 0; i < 10; ++i)
- {
- cout << "Podaj liczbe nr " << i + 1 << ": ";
- cin >> tablica[i];
- }
- cout << "Podane przez Ciebie liczby to: ";
- for(int i = 0; i < 10; ++i)
- cout << tablica[i] << '\t';
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment