NAMA
(09221016) (09221034)
unit Unit4;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons;
type TForm1 = class(TForm) Label1: TLabel; BitBtn1: TBitBtn; Memo1: TMemo; procedure BitBtn1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject); var i:integer; fahrenheit:integer; begin memo1.Clear; fahrenheit:=2*29; i:=0; repeat i:=2; fahrenheit:=fahrenheit+i; memo1.Lines.Add('fahrenheit='+inttostr(i)); memo1.Lines.Add('reamure='+inttostr(fahrenheit)); until (fahrenheit>2)or(i>60);
until (fahrenheit>2)or(i>120);
end; end.