Vous êtes sur la page 1sur 2

Program CalculPrimeLocale;

uses WinCrt;

var Prime,Pourcent,CA:real;

ville:string;

Begin

writeln('Quel est le chiffre d affaire du commercial?');

readln(ca);

writeln('Dans quelle agence a-t-il travaill�: "LOME" ou "KARA"?');

readln(ville);

if ville='LOME' Then

Begin

if CA<=100000 then

Pourcent:=0

else if CA<=300000 then

pourcent:=3

else pourcent:=5;

Prime:=(CA*Pourcent)/100;

end

else if ville='KARA' Then

Begin

if CA<=200000 then

pourcent:=0

else if CA<=500000 then

pourcent:=2

else pourcent:=4;

Prime:=(CA*Pourcent)/100;

end;

Begin
Pourcent:=0;

Prime:=(CA*Pourcent);

writeln('Le chiffre d" affaire r�alis� est: ',CA:0:2);

writeln('La ville est: ',ville);

writeln('La valeur de la prime est: ',Prime:0:2);

end

End.

Else

writeln('Erreur: nom d" agence saisi incorrect');

End.

Vous aimerez peut-être aussi