samedi 24 septembre 2016
    1. Program PGCD_Diff;
    2. Var a, b : Integer;
    3. Begin
    4. Repeat
    5. Writeln ('Saisir deux entiers >0 ');
    6. Readln (a, b);
    7. Until(a>0) and (b>0);
    8. While a<>b Do
    9. If a>b Then a:= a-b
    10. Else b:= b-a ;
    11. Writeln ('PGCD =', a);
    12. End.

0 commentaires:

Enregistrer un commentaire

Page Facebook

Turbo Pascal 32 bits

Turbo Pascal 64 bits