unit U_inicial;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Buttons, Vcl.StdCtrls;

type
  TForm1 = class(TForm)
    menu_tabuada: TMemo;
    btn_gerar: TSpeedButton;
    txt_n1: TEdit;
    Label1: TLabel;
    procedure btn_gerarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.btn_gerarClick(Sender: TObject);
  var x,n1:integer;

begin
//adiciona elementos no memo
  n1 := strtoint(txt_n1.text) ;

    for x := 1 to 10 do
    begin

    menu_tabuada.Lines.Add(IntToStr(n1) + ' X ' + IntToStr(x) + ' = ' + IntToStr( n1 * x));

    end;


end;

end.
