Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Kanan Asgarli
- https://www.e-olymp.com/az/problems/922
- */
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int n, a[100];
- int main()
- {
- cin>>n;
- for(int i = 0; i < n; i++){
- cin>>a[i];
- }
- cout<<a[n-1]<<" ";
- for(int i = 0; i < n-1; i++)
- cout<<a[i]<<" ";
- return 0;
- }
Add Comment
Please, Sign In to add comment