Commits

Max Horn committed 9909702

Cool new feature: dynamic greetings

Comments (0)

Files changed (1)

 #include "stdio.h"
+#include "stdlib.h"
 
 int main(int argc, char **argv) {
+	char name[256];
 	printf("Hello, world!\n");
 	printf("Hello, universe!\n");
+	printf("Please enter your name: ");
+	fgets(name, sizeof(name), stdin);
+	printf("Hello, %s!\n", name);
 	return 0;
-}
+}