diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-03 05:45:36 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2023-12-03 05:45:36 +0000 |
commit | a370a263dfd961807863558585b3fa9a1a7fce3c (patch) | |
tree | e780f0001accb1f796d5a4b983dad408377cad74 /wk1/phone-book.c | |
parent | 14c26179f6b5ef68ce28894a02a0e564fc0ee2a7 (diff) |
Sat, Dec 2, 2023, 9:45 PM -08:00
Diffstat (limited to 'wk1/phone-book.c')
-rw-r--r-- | wk1/phone-book.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wk1/phone-book.c b/wk1/phone-book.c new file mode 100644 index 0000000..b0c5a9d --- /dev/null +++ b/wk1/phone-book.c @@ -0,0 +1,10 @@ +#include <stdio.h> +#include <cs50.h> + +int main(void) +{ + string name = get_string("What's your name? "); + int age = get_int("What's your age? "); + string phone = get_string("What's your phone number? "); + printf("Age is %i. \nName is %s. \n Number is %s. \n", age, name, phone); +} |