#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; }
#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; }