From 95373b1ed0a4b82f68c6f88121c61f9f315ea146 Mon Sep 17 00:00:00 2001
From: MALLINGER Robin <robin.mallinger1@etu.univ-lorraine.fr>
Date: Sat, 29 Mar 2025 16:54:28 +0100
Subject: [PATCH] ajout du fichier exo2

---
 exo2.ts | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 exo2.ts

diff --git a/exo2.ts b/exo2.ts
new file mode 100644
index 0000000..fcaa8fc
--- /dev/null
+++ b/exo2.ts
@@ -0,0 +1,11 @@
+function deb1(): number {
+    let j = 200;
+    let tab: number[] = [];
+    for (let i = 0; i < 10; i++) {
+        j -= 10;
+        tab[i] = j;
+    }
+    console.log(tab);
+    return j;
+}
+console.log(deb1());
-- 
GitLab