fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,i;
  5. scanf("%d",&a);
  6. int data[a];
  7. for(i=0;i<a;i++) scanf("%d",&data[i]);
  8. for(i=a-1;i>=0;i--){
  9. printf("%d ",data[i]);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty