Presentation is loading. Please wait.

Presentation is loading. Please wait.

Naredba If..Then..Else... Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt.

Similar presentations


Presentation on theme: "Naredba If..Then..Else... Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt."— Presentation transcript:

1 Naredba If..Then..Else..

2

3 Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt ( Edit2.Text ); If x > y Then Max := x Else Max := y; Label4.Caption := IntToStr ( Max ); End;

4

5 Procedure TForm1.Button1Click( SEnder: TObject ); Var a, b, c, Max : Integer; Begin a := StrToInt ( Edit1.Text ); b := StrToInt ( Edit2.Text ); c := StrToInt ( Edit3.Text ); Max := a; If b > Max Then Max := b; If c > Max Then Max := c; Label5.Caption := IntToStr ( Max ); End;

6

7 Procedure TForm1.Button1Click( SEnder: TObject ); Var x,y:integer; begin x:=StrToInt (Edit1.Text); if x<0 then y:=-1 else if x=0 then y:=0 else y:=1; Label3.Caption:=IntToStr(y); End;

8 Procedure TForm1.Button1Click( SEnder: TObject ); Var x1,x2,y:integer; begin x1:=StrToInt(Edit1.Text); x2:=StrToInt(Edit2.Text); if x1 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/3278568/11/slides/slide_7.jpg", "name": "Procedure TForm1.Button1Click( SEnder: TObject ); Var x1,x2,y:integer; begin x1:=StrToInt(Edit1.Text); x2:=StrToInt(Edit2.Text); if x1


Download ppt "Naredba If..Then..Else... Procedure TForm1.Button1Click ( SEnder: Tobject ); Var x, y, Max : Integer; Begin x := StrToInt ( Edit1.Text ); y := StrToInt."

Similar presentations


Ads by Google