about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorphoebos <ben@bvnf.space>2021-05-19 03:47:13 +0100
committerphoebos <ben@bvnf.space>2021-05-19 03:47:13 +0100
commitfede6d23b36ce590b1c7de2249b28375d1575434 (patch)
tree5abd0b0e36cc424bbd2028e8e3bd9157a904d09b
parent44f176cdff8e1f076218542db9c9abb19e2b8097 (diff)
downloadkandr-fede6d23b36ce590b1c7de2249b28375d1575434.tar.gz
spacing
-rw-r--r--1.6.c6
-rw-r--r--max.c11
2 files changed, 3 insertions, 14 deletions
diff --git a/1.6.c b/1.6.c
index bb9e778..7156561 100644
--- a/1.6.c
+++ b/1.6.c
@@ -33,17 +33,17 @@ int main (int argc, char *argv[]) {
     // we start printing each bar as i gets to be within the bar's value
 	for (i = max + 2; i > 0; i--) {
         // side axis
-		printf("%3d |", i);
+		printf("%4d |", i);
         for (int j = 0; j < NASCII; ++j)
             printf("%s", i <= ascii[j] ? "*" : " ");
         printf("\n");
     }
     // bottom axis
-    printf("    +");
+    printf("     +");
     for (j = '!'; j <= '~'; ++j)
         printf("-");
     // bottom labels
-    printf("\n    |");
+    printf("\n     |");
     for (j = '!'; j <= '~'; ++j)
         printf("%c", j);
     printf("\n");
diff --git a/max.c b/max.c
deleted file mode 100644
index ef5b331..0000000
--- a/max.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdio.h>
-#include <time.h>
-int main() {
-    char i = 0;
-    while (1) {
-        printf("%d\n", i);
-        i++;
-        sleep(1);
-    }
-    return 0;
-}