Advertisement
asadlive84

I dont understand.

Mar 22nd, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int ara[]={10,20,30,40,50,60,70,80,90,100};
  5.     int temp;
  6.     int i,j;
  7.  
  8.      for(i=0,j=9;i<10;i++,j--)
  9.     {
  10.        temp=ara[j];
  11.        ara[i]=temp;
  12.        printf("%d\n",ara[i]);
  13.     }
  14.  
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement