fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char str[10];
  5. scanf("%s", str);
  6. printf("%s\n", str);
  7. for (int i = 0; str[i] != '\0'; i++) {
  8. printf("%c\n", str[i]);
  9. }
  10. }
  11.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout