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

Ex 4

parent ca94704b
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,15 @@ function deb3(x: number, y: number): void {
let x = 10;
let y = 20;
deb3(x, y);
console.log(x, y);
\ No newline at end of file
console.log(x, y);
// exercice4
function deb4(xy: number[]): void {
let tmp = xy[0];
xy[0] = xy[1];
xy[1] = tmp;
console.log(xy);
}
let xy = [10, 20];
deb4(xy);
console.log(xy);
\ 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