

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
uses crt;
var a,b,g:integer; f:text;
function euclid(a:integer; b:integer):integer;
begin
if b=0 then exit(a)
else exit(euclid(b,a mod b));
end;
begin
clrscr;
assign(f,'in.inp');
reset(f);
read(f,a,b);
close(f);
g := euclid(a,b);
assign(f,'out.out');
rewrite(f);
writeln(f,g);
close(f);
end.
$\\$
`@Daoanhviet96`
Hãy giúp mọi người biết câu trả lời này thế nào?
const fi='input.inp';
fo='output.oup';
var
a,b : longint ;
function UC(m: longint;n:longint) : longint ;
var i : longint ;
begin
m := abs(m);
n := abs(n);
while b <> 0 do
begin
i := a mod b ;
a := b ;
b := i ;
end ;
UC := a ;
end ;
begin
assign(input,fi);assign(output,fo);
reset(input);rewrite(output);
readln(input,a,b);
writeln(output,UC(a,b));
close(input);close(output);
end .
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
5599
4859
3498
Code toy dc k
2901
47938
1864
không biết :) t không đọc hiểu được code pas
5599
4859
3498
Code t dễ gây phẫn nộ cho ng mù