From ff5616b20ef63724bb76ff13ff20969b9fe8660e Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@hesge.ch>
Date: Fri, 20 Sep 2019 00:54:33 +0200
Subject: [PATCH] iteration sur tableau

---
 base_2.md | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/base_2.md b/base_2.md
index 1f5189a..3284df0 100644
--- a/base_2.md
+++ b/base_2.md
@@ -251,9 +251,24 @@ int main(void) {
 	return 0;
 }
 ``` -->
+# Les tableaux (3/N)
 
+## Itérer sur les éléments d'un tableau
 
-# Les tableaux (3/N)
+```C
+int x[10];
+for (int i = 0; 0 < 10; ++i) {
+    x[i] = 0;
+}
+int j = 0;
+while (j < 10) {
+    x[j] = 1;
+    j += 1;
+}
+```
+
+
+# Les tableaux (4/N)
 
 ## Les tableaux comme argument
 
-- 
GitLab