#include <stdio.h>
const int MAXN = 128;

void imprime_reverso(int A[], int tam){
    if(tam == 0){ // caso base
        return;
    }
    
    printf("%d\n", A[tam - 1]);
    imprime_reverso(A, tam - 1);
}

int main() {
    int A[MAXN], i, n;

    scanf("%d", &n);

    for(i = 0; i < n; i++){
        scanf("%d", &A[i]);
    }

    imprime_reverso(A, n);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: