diff --git a/exo5.ts b/exo5.ts index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..26f3b71ca028aea2b7eb9f18b72d9435452b7f27 100644 --- a/exo5.ts +++ b/exo5.ts @@ -0,0 +1,20 @@ +let j = 10; +console.log(j); + +deb4(); + +console.log( j); + +function deb4(): number { + + let j = 25; + console.log( j); + + for (let i = 0; i < 10; i++) { + + let j = 2 * i; + console.log(i,j); + } + + return j; +} \ No newline at end of file