We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#include<cmath>#include<cstdio>#include<vector>#include<iostream>#include<algorithm>usingnamespacestd;intmain(){/* Enter your code here. Read input from STDIN. Print output to STDOUT */intn;cin>>n;intarr[n];intb;for(b=1;b<=n;b++){cin>>arr[b-1];}for(inti=0;i<n;i++){cout<<arr[n-i-1];}//Easy af!return0;}
Variable Sized Arrays
You are viewing a single comment's thread. Return to all comments →