bn tham khảo
var n:longint;
//
function gt(n:longint):int64;
var h:longint;
begin
gt:=1;
for h:=2 to n do gt:=gt*h;
end;
//
begin
read(n);
write(gt(n));
end.
Var i,n,s:integer;
Begin
Write('Nhap n = ');readln(n);
s:=1;
For i:=2 to n do s:=s*i;
Write('S = ',s);
Readln;
End.