#include <stdio.h>

int main() {
    char str[6];
    //scanf("%s",str)
    for(int i =0;i<5;i++)
    {
        scanf("%c",&str[i]);
        fflush(stdin);
    }
    str[5]='\0';
    printf("%s",str);
    return 0;
}

Embed on website

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