Update test.c

This commit is contained in:
Sofia 2026-04-28 16:19:53 +03:00
parent 52614a7f01
commit 0fb63ee703

4
test.c
View File

@ -52,11 +52,11 @@ int main() {
printf("2d array: %d!\n", twod_array[0][0]); printf("2d array: %d!\n", twod_array[0][0]);
for (int counter = 0; counter < 10; counter++) for (int counter = 0; counter < 10; counter++)
printf("counter: %d\n", counter); printf("for-counter: %d\n", counter);
int counter = 0; int counter = 0;
while (counter < 10) while (counter < 10)
printf("counter: %d\n", counter++); printf("while-counter: %d\n", counter++);
return 0; return 0;
} }