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