samedi 24 septembre 2016
    1. Program ppcm_pgcd;
    2. Var a, b : integer;
    3. (************************************)
    4. Procedure saisie (Var a,b:integer);
    5. Begin
    6. Repeat
    7. Writeln('Donner deux entiers >0');
    8. Readln (a, b);
    9. Until (a>0) and (b>0);
    10. End;
    11. (***********************************)
    12. Procedure affiche(a,b:integer);
    13. Var k:integer;
    14. Begin
    15. k := 0;
    16. Repeat
    17. k := k+1
    18. Until (a*k) mod b = 0;
    19. Writeln ('ppcm de ', a, ' et ', b, ' = ', a*k);
    20. Writeln ('pgcd de ', a, ' et ', b, ' = ', b div k);
    21. End;
    22. (***************** P.P ****************)
    23. Begin
    24. saisie(a,b);
    25. affiche(a,b);
    26. End.

2 commentaires:

  1. Wynn and Encore Casinos - MapYRO
    Wynn 김해 출장샵 and Encore have both earned slightly 인천광역 출장안마 better 포항 출장안마 reviews in the industry than 수원 출장안마 average guests, but are considerably more expensive. Wynn 오래된 토토 사이트 Hotel.

    RépondreSupprimer

Page Facebook

Turbo Pascal 32 bits

Turbo Pascal 64 bits