Monday, April 4, 2011
Faktorial ( Pemrograman Terstruktur )
Posted by Dendi Prana Yudha in
Kuliah
program coba;
uses crt;
function faktorial (n:integer) : integer;
begin
if n = 0 then
faktorial := 1
else
faktorial := n * faktorial(n-1);
end;
begin
writeln(faktorial(4));
readln;
clrscr;
end.
0 komentar:
Post a Comment
Tinggalkan Komentar Disini