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
| procedure TForm1.Button2Click(Sender: TObject);
var
Note:Integer;
begin
Note:=4;
if ((note>=0) and (note <=5)) then
ShowMessage('Oula!De gros efforts sont à fournir!!')
else
begin
if ((note>=6) and (note <=10)) then
ShowMessage('On se rapproche de la moyenne, encore un effort!')
else
begin
if ((note>=11) and (note <=15)) then
ShowMessage('Pas mal du tout!Continuez')
else
begin
if ((note>=16) and (note <=20)) then
ShowMessage('Que dire, si ce n''est Félicitations')
else
ShowMessage('Note Incorrecte');
end
end;
end;
end; |
Partager