Advertisement
pan7nikt

Tablica

Dec 11th, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. int i;
  6. int Tab[10];
  7.  
  8. main()
  9. {
  10.     for (i=0;i<10;i++)
  11.     {
  12.         cout << "podaj liczbe " << i << ": ";
  13.         cin >> Tab[i];
  14.         system("cls");
  15.     }
  16.    
  17.    
  18.     for (i=0;i<10;i++)
  19.     {
  20.         cout << "liczba " << i << " to: " << Tab[i] << endl;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement