#include <stdio.h>

#if 0
int main(){
    char a[25],b[25][25];
    int i,j,k;
    
    for(i=0;i<5;i++){
        scanf("%c",&a[i]);
    }
    
    for(j=4;j>=0;j--){
        printf("%c ",a[j]);
    }
}
#endif


int main() {
    char array[10],array_dup[10];
    
    for(int index=0;index<5;index++){
        scanf("%c",&array[index]);
    }
    
    for(int index=4;index>=0;index--){
        printf("%c ",array[index]);
    }
    
    return 0;
}

Embed on website

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