summaryrefslogtreecommitdiff
path: root/wk1/ask.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk1/ask.c')
-rw-r--r--wk1/ask.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wk1/ask.c b/wk1/ask.c
new file mode 100644
index 0000000..39a3910
--- /dev/null
+++ b/wk1/ask.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <cs50.h>
+
+int main(void)
+{
+ string first = get_string("What's your first name? ");
+ char middle = get_char("What's your middle INITIAL? ");
+ string last = get_string("What's your last name? ");
+ printf("Hello, %s %c %s\n", first, middle, last);
+}