Skip to content
Snippets Groups Projects
Commit 5654287a authored by BOGUET Thomas's avatar BOGUET Thomas
Browse files

Ex 2

parent a000aae8
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,16 @@ function deb1(): number {
}
return j;
}
console.log(deb1());
\ No newline at end of file
console.log(deb1());
// exercice2
function deb1_1(): void {
let j = 200;
let tab: number[] = [];
for (let i = 0; i < 10; i++) {
j -= 10;
tab[i] = j;
}
console.log(tab);
}
deb1_1();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment