From a2c2af12e8937dbe407f5088ab3d68fd8f57cd27 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 3 Dec 2023 01:55:31 +0000 Subject: Sat, Dec 2, 2023, 5:55 PM -08:00 --- wk1/ask.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wk1/ask.c (limited to 'wk1/ask.c') 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 +#include + +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); +} -- cgit v1.2.3