Preview:
#include <stdio.h>
int main ()
{

    char word [128];
    int i =0;
    

    printf("Input a word:\n");
    scanf("%s",word);
    
    while(word[i]!='\0')
    {
        i++;
    }
    for(int i=0;i<=word[i];i++)
        {
            printf("%c\n",word[i]);
        }

return 0;    
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter