Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int p;
- cout<<"ile prob ?"<<endl;
- cin>>p;
- for (int i=0;i<p;i++)
- {
- int x;
- cout<<"ile elemntow ?"<<endl;
- cin>>x;
- int t[x];
- for (int j=0;j<x;j++)
- {
- cout<<"podaj "<<j+1<<" element "<<i+1<<" tablicy"<<endl;
- cin>>t[j];
- }
- for(int j=0;j<x;j++)
- {
- cout<<t[x-1-j]<<" ";
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement