From 66982e7c89ee5b3a144546c7a5a0c41143b1c707 Mon Sep 17 00:00:00 2001
From: GAUZERE Julien <julien.gauzere1@etu.univ-lorraine.fr>
Date: Thu, 3 Apr 2025 20:37:58 +0000
Subject: [PATCH] Ex7

---
 Exo.ts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Exo.ts b/Exo.ts
index a5ee191..52817e0 100644
--- a/Exo.ts
+++ b/Exo.ts
@@ -55,3 +55,11 @@ let tab4 = [ ... tab1]; //[...] crée une copie indépendante du tableau
 tab3[1] = 5; //n'affecte pas tab4
 console. log(tab3, tab4);
 //Dans le second cas, tab2 est une nouvelle copie indépendante de tab1, ce qui évite les modifications involontaires.
+
+multiplication(5, 3);
+
+function multiplication(x: number, y: number) : number { //deb7 devient multiplication
+    if (y === 0) {
+        return 0;}
+    return x * y;
+}
\ No newline at end of file
-- 
GitLab