fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int an,bn,deta[20];
  5. scanf("%d",&an);
  6. for(int i=0; i<an;i++ ){
  7. scanf("%d",&bn);
  8. deta[i]=bn;}
  9. for(int i=an-1;i>=0;i--){
  10. printf("%d ",deta[i]);}
  11. // your code goes here
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5516KB
stdin
3
1
2
3
stdout
3 2 1