summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:09:55 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:09:55 +0000
commitc38a010b1a4ef3cc7ff145b83c346340e9e5e6ae (patch)
tree4bc94b31250beda92b13def55ff0eeafad268397
parent3339f759dc7ef9469cf8b440baf7375012fe8608 (diff)
Thu, Nov 30, 2023, 9:09 PM -08:00
-rw-r--r--ask.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ask.c b/ask.c
index 66f42e5..5d42da5 100644
--- a/ask.c
+++ b/ask.c
@@ -3,6 +3,7 @@
int main(void)
{
- string ans = get_string("What's your name? ");
- printf("Hello, %s\n", ans);
+ string first = get_string("What's your first name? ");
+ string last = get_string("What's your last name? ");
+ printf("Hello, %s %s\n", first, last);
}