mardi 27 septembre 2016
    1. Program Aire_Triangle;
    2. Var a, b, c, Surf, P : Real;
    3. Begin
    4. Writeln ('Donner 3 réels positifs :');
    5. Readln (a, b, c);
    6. IF (a+b=c) Or (a+c=b) Or (b+c=a) Then Writeln ('Il ne s''agit pas d''un triangle')
    7. Else
    8. Begin
    9. P := (a+b+c)/2;
    10. Surf := sqrt (P*(P-a)*(P-b)*(P-c));
    11. End;
    12. Writeln ('Aire de triangle = ', Surf:4:2);
    13. End.

0 commentaires:

Enregistrer un commentaire

Page Facebook

Turbo Pascal 32 bits

Turbo Pascal 64 bits