summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:19:07 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-01 05:19:07 +0000
commit00b7620092053204de608e9a71367a4a21481408 (patch)
treeed8cdc42bb89b5947e36f1aff494d0051f0c4302
parentc38a010b1a4ef3cc7ff145b83c346340e9e5e6ae (diff)
Thu, Nov 30, 2023, 9:19 PM -08:00
-rw-r--r--ask.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ask.c b/ask.c
index 5d42da5..39a3910 100644
--- a/ask.c
+++ b/ask.c
@@ -4,6 +4,7 @@
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 %s\n", first, last);
+ printf("Hello, %s %c %s\n", first, middle, last);
}