From c38a010b1a4ef3cc7ff145b83c346340e9e5e6ae Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Fri, 1 Dec 2023 05:09:55 +0000 Subject: Thu, Nov 30, 2023, 9:09 PM -08:00 --- ask.c | 5 +++-- 1 file 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); } -- cgit v1.2.3