summaryrefslogtreecommitdiff
path: root/wk2/sect2
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 04:45:32 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-06 04:45:32 +0000
commitbe16b386117b6163659331e4509d9a579710edef (patch)
treea011ca0e48e5bd7743cca74bb71bb78118e3d73a /wk2/sect2
parentc0bb8f888e7a7826fba29329e471e41ee6d741a2 (diff)
Tue, Dec 5, 2023, 8:45 PM -08:00
Diffstat (limited to 'wk2/sect2')
-rw-r--r--wk2/sect2/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wk2/sect2/array.c b/wk2/sect2/array.c
index bece42f..a8807a7 100644
--- a/wk2/sect2/array.c
+++ b/wk2/sect2/array.c
@@ -15,8 +15,8 @@ int main(void)
{
array[i] = array[i - 1] * 2;
}
- for (int i = 0; j < n; j++)
+ for (int i = 0; i < n; i++)
{
- printf("%i\n", array[j]);
+ printf("%i\n", array[i]);
}
}