Debian Codegraph @

lib/mllpt-lib/ml-lpt/ml-antlr/examples/dragon/bad1.pas

raw
1 program example(input, output);
2 var x, y : integer;
3 function gcd(a, b : integer): integer;
4 begin
5 if b = 0 then gcd := a
6 else gcd := gcd(b, a mod b)
7 end; { gcd }
8
9 begin
10 read(x, y);
11 write(gcd(x, y))
12 end.