#include<stdio.h> int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } for(int i=n-1;i>=0;i--){ printf("%d ",a[i]); } return 0; }
To embed this program on your website, copy the following code and paste it into your website's HTML: