salut j'ai un petit probleme avec un mot de passe voila le code


le probleme est dans cette partie
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
begin
clrscr;
for i:=3 downto 1 do
begin
clrscr;
gotoxy(15,10); write('vous avez droit a ',i,' essais');
gotoxy(15,15); write('entrer le mote de passe : '); read(pass);
if pass='123456' then
begin
  break
  end;
end ;
 
if pass<>'123456' then end.
le code complet
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
uses crt;
var max,min,jour,mois,annee,i,a:integer;
    pass:string;
  var  j,n:integer;
    moy:real;
  qte: array [1..31] of integer;
 
begin
clrscr;
for i:=3 downto 1 do
begin
clrscr;
gotoxy(15,10); write('vous avez droit a ',i,' essais');
gotoxy(15,15); write('entrer le mote de passe : '); read(pass);
if pass='123456' then
begin
  break
  end;
end ;
 
if pass<>'123456' then end.
 
clrscr;
for a:=1 to 80 do
begin
gotoxy(a,1); write('±');
gotoxy(a,20); write('±');
gotoxy(a,22); write('±');
gotoxy(a,31); write('±');
gotoxy(a,45); write('±');
end;
for j:=1 to 45 do
begin
gotoxy(1,j); write('±');
gotoxy(80,j); write('±');
end;
for j:=20 to 31 do
begin
gotoxy(10,j); write('±');
gotoxy(20,j); write('±');
gotoxy(30,j); write('±');
gotoxy(40,j); write('±');
gotoxy(50,j); write('±');
gotoxy(60,j); write('±');
gotoxy(70,j); write('±');
end;
gotoxy(33,3); write('ETAT DE PLUIE');
gotoxy(7,7); write('ANNEE:  ');
gotoxy(7,9); write('MOIS:  ');
gotoxy(2,21); write('JOURE');
gotoxy(22,21); write('JOURE');
gotoxy(42,21); write('JOURE');
gotoxy(62,21); write('JOURE');
gotoxy(15,21); write('QT');
gotoxy(35,21); write('QT');
gotoxy(55,21); write('QT');
gotoxy(75,21); write('QT');
 
gotoxy(13,7) ; read(annee);
gotoxy(12,9); read(mois);
 
case mois of
 1,3,7,8,10,12: jour:=31;
 4,5,6,9,11 : jour := 30 ;
 2 : if annee mod 4 <> 0 then jour :=28 else jour:=29
end;
 
 
  j:=23;
 
 for a:=1 to 8 do
 begin
 gotoxy(4,j); write(a);
 j:=j+1;
 end;
 j:=23;
 for a:=9 to 16 do
 begin
 gotoxy(24,j); write(a);
 j:=j+1;
 end;
 j:=23;
 for a:=17 to 24 do
 begin
 gotoxy(44,j); write(a);
 j:=j+1;
 end;
 j:=23;
 for a:=25 to jour do
 begin
 gotoxy(64,j); write(a);
 j:=j+1;
 end;
 j:=23;
 for i:=1 to 8 do
 begin
 gotoxy(14,j); read(qte[i]);
 j:=j+1;
 end;
 j:=23;
 for i:=9 to 16 do
 begin
 gotoxy(34,j); read(qte[i]);
 j:=j+1;
 end;
 j:=23;
 for i:=17 to 24 do
 begin
 gotoxy(54,j); read(qte[i]);
 j:=j+1;
 end;
 j:=23;
 for i:= 25 to jour do
 begin
 gotoxy(74,j); read(qte[i]);
 j:=j+1;
 end;
 
min:=qte[1];
for i:=2 to jour do
begin
if qte[i] < min then min:=qte[i];
end;
max:=min;
for i:=1 to jour do
begin
if qte[i] > max then max:=qte[i];
end;
gotoxy(54,35); write('quantite max : ',max);
gotoxy(54,36); write('quantite min : ',min);
gotoxy(54,37); write('quantite moyenne : ',(max+min)/2 :2:2);
readln;readln;
 end.