function power(base, n : integer) : int64;
var
i : integer;
t : int64;
begin
t := 1;
for i := 1 to n do
t := t * base;
power := t;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(power(4, 3)));
end;
訂閱:
張貼留言 (Atom)
Skin Design:
Free Blogger Skins
沒有留言:
張貼留言