From 48c8ba90873a321138704baf9aae98344cfe23be Mon Sep 17 00:00:00 2001
From: Dahmane Lynda <lynda.dahmane.etu@118p28.fil.univ-lille.fr>
Date: Wed, 31 Jan 2024 09:06:55 +0100
Subject: [PATCH] somme

---
 Tp3/tracing_recurcing.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Tp3/tracing_recurcing.py

diff --git a/Tp3/tracing_recurcing.py b/Tp3/tracing_recurcing.py
new file mode 100644
index 0000000..d083708
--- /dev/null
+++ b/Tp3/tracing_recurcing.py
@@ -0,0 +1,19 @@
+#Dahmane lynda
+#TP3
+#31/01/2024
+def somme(a:int,b:int)->int:
+    """renvoie la somme des deux entiers a et b
+
+    Précondition : 
+    Exemple(s) :
+    $$$ somme(4,5)
+    9
+    $$$ somme(2,1)
+    3
+
+    """
+    if a==0:
+        res=b
+    else:
+        res=somme(a-1,b+1)
+    return res
\ No newline at end of file
-- 
GitLab