diff options
Diffstat (limited to 'rushs/tinyprintf/hello_friends/hello.c')
| -rw-r--r-- | rushs/tinyprintf/hello_friends/hello.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rushs/tinyprintf/hello_friends/hello.c b/rushs/tinyprintf/hello_friends/hello.c new file mode 100644 index 0000000..63df2f1 --- /dev/null +++ b/rushs/tinyprintf/hello_friends/hello.c @@ -0,0 +1,13 @@ +#include <stdio.h> + +int main(int argc, char **argv) +{ + if (argc == 1) + printf("Hello World!\n"); + else + for (int i = 1; i < argc; i++) + { + printf("Hello %s!\n", argv[i]); + } + return 0; +} |
