program factorial;
uses wincrt;
var
n,fak,i: integer;
begin
clrscr;
write('n=');readln(n);
fak:=1;
for i:= 1 to n do
fak:= fak * i;
writeln('fak=',fak);
readln;
end.
semoga bermanfaat buat kalian semua
program factorial;
uses wincrt;
var
n,fak,i: integer;
begin
clrscr;
write('n=');readln(n);
fak:=1;
for i:= 1 to n do
fak:= fak * i;
writeln('fak=',fak);
readln;
end.
0 komentar:
Posting Komentar