diff options
Diffstat (limited to 'wk2/sect/initials.c')
-rw-r--r-- | wk2/sect/initials.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/wk2/sect/initials.c b/wk2/sect/initials.c new file mode 100644 index 0000000..45a36c6 --- /dev/null +++ b/wk2/sect/initials.c @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <ctype.h> +#include <cs50.h> +#include <string.h> + +int main(int argc, string argv[]) +{ + for (int i = 1; i < argc; i++) + { + printf("%c", argv[i][0]); + } + printf("\n"); +} |