Advertisement
PROFESSOR_AIH

Array change I

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