02_textinput.c 148 B

12345678910
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char name[1024];
  5. printf("What is your name?\n");
  6. scanf("%s", name);
  7. printf("Hello, %s!\n", name);
  8. return 0;
  9. }