fork(19) download
  1. Program PGCD_Euclide;
  2. Var a, b, r : Integer;
  3. Begin
  4. Repeat
  5. Writeln ('Saisir deux entiers > 0');
  6. Readln (a, b);
  7. Until (a>0) and (b>0);
  8. While b<>0 Do
  9. Begin
  10. r := a mod b;
  11. a := b; b := r;
  12. End;
  13. Writeln ('PGCD = ',a);
  14. End.
Success #stdin #stdout 0s 276KB
stdin
25
44
stdout
Saisir deux entiers > 0
PGCD = 1