九九乘法表
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.
今天我也刚学第一课 牛B, {:5_105:} 怎么我打开时提示说工程没有被指定啊 强烈支持楼主ing……....{:5_101:} 激动人心,无法言表! 支持楼主发扬Delphi 也可以直接用canvas
页:
[1]