Skip to content
Snippets Groups Projects
Commit af833264 authored by Aurélien's avatar Aurélien
Browse files

Exo4 p1

parent c7cb7954
No related branches found
No related tags found
No related merge requests found
function deb3(xy: number[]):void {
let tmp= xy[0];
xy[0]= xy[1];
xy[1]= tmp;
console.log(xy);
}
let xy= [10, 20];
deb3(xy);
console.log(xy);
/* Sa fonctionne care on a utilisé un tableau
et sa modis fie les valeurs de xy dans la fonction deb3 */
\ 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