Advertisement
Avdluna

URI 1175

Aug 17th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int x[25],i,a,j;
  7.  
  8.     for(i=0 ; i<20 ; i++){
  9.  
  10.        scanf("%d", &x[i]);
  11.  
  12.     }
  13.  
  14.     for(j=0 ; j<20 ; j++){
  15.  
  16.         a=19-j;
  17.  
  18.        printf("N[%d] = %d\n", j , x[a]);
  19.     }
  20.  
  21.  
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement