// xcas version=0.9.3 fontsize=14 font=0 currentlevel=0 // fltk 7Fl_Tile 11 56 868 347 14 0 [ // fltk N4xcas7EditeurE 11 56 868 289 14 0 416 , tabl():={ local tab1,tab2,nb,k,n; tab1:=[15,12,20,16]; tab2:=[]; //cette initiaisation est indispensable pour typer la variable tab2 print("Le premier tableau est : "+tab1); print("Le nombre d'indice 2 du tableau "+tab1+" est "+tab1[2]); input("Combien de nombres voulez vous placer dans le tableau? ",nb); pour k de 0 jusque nb-1 faire input(n); tab2[k]:=n; fpour; print("Voici le tableau : "+tab2+" !") } :;, // fltk N4xcas10Log_OutputE 11 345 868 38 14 0 // Parsing tabl£// Success compiling tabl£ , // fltk N4xcas8EquationE 11 383 868 20 14 0 1 "Done" ] , // fltk 7Fl_Tile 11 405 868 116 14 0 [ // fltk N4xcas19Multiline_Input_tabE 11 405 868 22 14 0 tabl( , // fltk N4xcas10Log_OutputE 11 427 868 74 14 0 Le premier tableau est : [15,12,20,16]£Le nombre d'indice 2 du tableau [15,12,20,16] est 20£Voici le tableau : [5,6,7] !£Evaluation time: 10.937£ , // fltk N4xcas8EquationE 11 501 868 20 14 0 1 1 ] , // fltk 7Fl_Tile 11 523 868 25 14 0 [ // fltk N4xcas19Multiline_Input_tabE 11 523 868 24 14 0 , // fltk N4xcas10Log_OutputE 11 547 868 1 14 0 ] // context 1172 giac archive 7 0 7 8 0 0 'cas_setup' 7 0 11 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 7 0 2 1 ý4å a 1 7 868 0 12 0 7 0 4 0 2 0 0 50 0 0 0 0 0 25 0 0 0 0 0 0 0 0 0 0 8 0 0 'xyztrange' 7 0 16 1  1  1 ö 1  1 ß 1 ½ 1  1 ¯ 1  1  1  1  0 1 0 1 ® 1  0 3 0 7 0 0 7 0 0 8 0 15 7 0 2 0 1 0 6 2 ok 8 0 15 7 0 2 8 0 73 7 0 3 7 1 0 7 1 0 8 0 42 7 0 2 7 0 2 7 1 5 6 4 tab1 6 4 tab2 6 2 nb 6 1 k 6 1 n 7 1 0 7 0 7 8 0 15 7 0 2 7 0 4 0 15 0 0 12 0 0 20 0 0 16 0 6 4 tab1 8 0 15 7 0 2 7 0 0 6 4 tab2 8 0 0 print 8 0 1 7 0 2 12 25 |Le premier tableau est : 6 4 tab1 8 0 0 print 8 0 1 7 0 4 12 32 |Le nombre d'indice 2 du tableau 6 4 tab1 12 5 | est 8 0 0 at 7 0 2 6 4 tab1 0 2 0 8 0 0 'saisir' 7 1 2 12 55 |Combien de nombres voulez vous placer dans le tableau? 6 2 nb 8 0 -1 pour 7 0 4 8 0 15 7 0 2 0 0 0 6 1 k 8 0 36 7 0 2 6 1 k 8 0 1 7 0 2 6 2 nb 0 -1 0 8 0 15 7 0 2 8 0 1 7 0 2 6 1 k 0 1 0 6 1 k 8 0 72 7 0 2 8 0 0 'saisir' 6 1 n 8 0 15 7 0 2 6 1 n 8 0 0 at 7 0 2 6 4 tab2 6 1 k 8 0 0 print 8 0 1 7 0 3 12 19 |Voici le tableau : 6 4 tab2 12 2 | ! 6 4 tabl 8 0 0 'xcas_mode' 0 0 0