13 lines
201 B
C
13 lines
201 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
char *name = malloc(10);
|
|
|
|
printf("What's your name?\n> ");
|
|
scanf("%s", name);
|
|
|
|
printf("Hello %s!\n", name);
|
|
|
|
return NULL;
|
|
}
|