S2 Informatique1
S2 Informatique1
Maximum Max:=t[1];
Var For i :=1 to n do
Max :integer ; If(t[i]>Max)then
Max:=t[i];
Write(‘Maximum de tableau est’, Max) ;
Minimum Min:=t[1];
Var For i :=1 to n do
Min :integer ; If(t[i]<Min)then
Min:=t[i];
Write(‘Mininmum de tableau est’, Min) ;
Recherche Cpt:=0;
Val,Cpt : integer ; Read(Val);
For i :=1 to n do
If(t[i]=Val)then
Cpt:=Cpt+1;
If (Cpt =0) then
Write(Val , ‘exist pas dans Tableau’)
else
Write(Val , ‘exist dans Tableau’ , Cpt,
‘fois’) ;
Berrabah Anes( @the_actual_lloyd_b)
Les Matrices(Arrays)
Description Instruction
Declaration Var
N : nombre de lignes Mat:array [1..N,1..M] of integer;
M : nombre de colones i,j: integer;