Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main () {
- int array [100], sizeofArray;
- printf("enter the size of array: ");
- scanf("%d", &sizeofArray);
- for(int i=0;i<sizeofArray;i++) {
- scanf("%d", &array[i]);
- }
- for(int i=sizeofArray-1;i>=0;i--) {
- printf("%d\n",array[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement