diff options
Diffstat (limited to 'wk5')
-rw-r--r-- | wk5/lect/list.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/wk5/lect/list.c b/wk5/lect/list.c index e5730fe..a9a96ed 100644 --- a/wk5/lect/list.c +++ b/wk5/lect/list.c @@ -8,5 +8,14 @@ int main(void) { - + int list[3]; + + list[0] = 1; + list[1] = 2; + list[2] = 3; + + for (int i = 0; i < 3; i++) + { + printf("%i\n", list[i]); + } } |