#include <stdio.h>

int main(){
    char a[25][25];//[NUM_STRINGS][MAX_LENGTH] // row--
                                               //    --  coulmn |||
                                               //    --           
    int i,j;
    
    for(i=0;i<5;i++){
        scanf("%s",a[i]);
    }
    
    for(j=4;j>=0;j--){
        printf("%s ",a[j]);
    }
}

Embed on website

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