summaryrefslogtreecommitdiff
path: root/wk3/lab/iteration.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-18 00:02:53 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-18 00:02:53 +0000
commit49c4599639c9015ea879cc9d8ccf819e09df271d (patch)
tree67a962455283332fadbe4b820cfa05eef60b9d6d /wk3/lab/iteration.c
parent19fd1f6fe17e43ebd83020539a13af18197070cc (diff)
Sat, Feb 17, 2024, 4:02 PM -08:00
Diffstat (limited to 'wk3/lab/iteration.c')
-rw-r--r--wk3/lab/iteration.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/wk3/lab/iteration.c b/wk3/lab/iteration.c
deleted file mode 100644
index 32a8a9d..0000000
--- a/wk3/lab/iteration.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <cs50.h>
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-void draw(int n);
-
-int main(void) {
- int height = get_int("Height: ");
- draw(height);
-}
-
-void draw(int n) {
- for (int i = 0; i < n; i++) {
- for (int j = 0; j < i + 1; j++) {
- printf("#");
- }
- printf("\n");
- }
-}