fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int a[6]={1,2,3,4,5,6};
  6. int t,i;
  7. for(i=1;i<=6;i++){
  8. t=a[3];
  9. a[3]=a[i-1];
  10. a[i-1]=t;
  11. printf("%d",a[i]);
  12. }
  13.  
  14.  
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5276KB
stdin
13
stdout
23356-1984645888