fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a,n,z[20];
  6. scanf("%d",&n);
  7. for(a=0; a<n; a++)
  8. {
  9. scanf("%d",&z[a]);
  10.  
  11. }
  12. for(a=n-1; a>=0; a--)
  13. printf("%d",z[a]);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5284KB
stdin
3
1 2 3
stdout
321