Advertisement
dzieciol

8.1.2

Jan 26th, 2015
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <cstdlib>
  4.  
  5. using namespace std;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9.     int tab[10];
  10.     for (int i=1;i<=10;i++)
  11.     {
  12.         cout<<"podaj jakąś liczbe";
  13.         int liczba;
  14.         cin>>liczba;
  15.         tab[i] = liczba;
  16.        
  17.         };
  18.       for(int i=10;i>=1;i--)
  19.       cout<<tab[i]<<endl;
  20.      
  21.   system("PAUSE"); 
  22.   return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement