|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
unit 九九;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
type
TForm1 = class(TForm)
memo1: TMemo;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i, j: Integer;
temp: Integer;
begin
for i := 1 to 9 do
begin
for j := 1 to i do
begin
temp := j * i;
if j < i then
memo1.Lines.text := memo1.Lines.text + inttostr(j) + 'x' + inttostr(i) + '=' + inttostr(temp) + '|'
else
memo1.Lines.text := memo1.Lines.text + inttostr(j) + 'x' + inttostr(i) + '=' + inttostr(temp) + '|' + #13#10;
end;
end;
end;
end.
99乘法表.rar
(99.47 KB, 下载次数: 31)
|
|