summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/pine/pine.c
diff options
context:
space:
mode:
Diffstat (limited to 'rushs/tinyprintf/pine/pine.c')
-rw-r--r--rushs/tinyprintf/pine/pine.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/rushs/tinyprintf/pine/pine.c b/rushs/tinyprintf/pine/pine.c
deleted file mode 100644
index 9d48761..0000000
--- a/rushs/tinyprintf/pine/pine.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <stdio.h>
-
-int pine(unsigned n)
-{
- if (n < 3)
- {
- return 1;
- }
-
- for (unsigned i = 0; i < n; i++)
- {
- for (unsigned j = 0; j < n - i - 1; j++)
- {
- putchar(' ');
- }
-
- for (unsigned j = 0; j < 2 * i + 1; j++)
- {
- putchar('*');
- }
-
- putchar('\n');
- }
-
- for (unsigned i = 0; i < n / 2; i++)
- {
- for (unsigned j = 0; j < n - 1; j++)
- {
- putchar(' ');
- }
- putchar('*');
- putchar('\n');
- }
-
- return 0;
-}