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

Ex 5

parent 7f2f0cc5
No related branches found
No related tags found
No related merge requests found
......@@ -41,4 +41,15 @@ function deb4(xy: number[]): void {
}
let xy = [10, 20];
deb4(xy);
console.log(xy);
\ No newline at end of file
console.log(xy);
// exercice5
function deb5(): number {
let j = 25;
for (let i = 0; i < 10; i++) {
let j = 2 * i;
console.log(j);
}
return j;
}
console.log(deb5());
\ 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