tugas SBD

ini pak tugasnya:

unit tugas;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Edit1: TEdit;
    Button1: TButton;
    Label3: TLabel;
    Label4: TLabel;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var a:integer;
ket:String;
begin
a:=StrToInt(Edit1.Text);
if (a mod 2=0) then
begin
if a>0 then ket:=’Genap Positif’
else ket:=’Genap Negatif’
end
else
if a<0 then ket:=’Ganjil Negatif’
else ket:=’Ganjil Positif’;
label2.Caption:=ket;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Edit1.Text:=”
end;

end.

tampilannya

Leave a comment »

Tugas SBD tentang type data

sbd2.jpgtugas SBD lagi dalam bentuk gambar

tugas SBD terbaru yang kuliahnya malem-malem, makasih Pak saya dan teman-teman jadi pada punya blog……

ini tugasnya:

duhh Pak ga bisa ngaturnya…. file wordnya disini Download

Leave a comment »

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Comments (1) »