Advertisement
dllbridge

Untitled

Oct 6th, 2022
679
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. using namespace std;
  3.  
  4.  
  5. double a[1000], r[1000];
  6. unsigned int b;
  7.  
  8. int main()
  9. {
  10.    cin >> b;
  11.    
  12.    for(int i = 1; i <= b; i++)
  13.    {
  14.         cin >> a[i];
  15.         r[i] = a[i];
  16.    }
  17.    
  18.    for(int g = b ; g >= 1; g--)
  19.    {
  20.       cout << r[g]<<' ';
  21.    }
  22.    
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement