Quote: menu{ border:none; border:0px; margin:0px; padding:0px; font: 67.5% "Arial", Arial; font-size:14px; font-weight:bold; } .menu ul{ background:#333333; height:35px; list-style:none; margin:0; padding:0; font-size:14px; font-weight:bold; } .menu li{ float:left; padding:0px; } .menu li a{ background:#333333 url("http://i47.tinypic.com/qp53sw.jpg") bottom right no-repeat; color:#cccccc; display:block; font-weight:normal; line-height:35px; margin:0px; padding:0px 25px; text-align:center; text-decoration:none; } .menu li a:hover, .menu ul li:hover a{ background: #2580a2 url("http://i49.tinypic.com/13zbc53.jpg") bottom center no-repeat; color:#FFFFFF; text-decoration:none; } .menu li ul{ background:#333333; display:none; height:auto; padding:0px; margin:0px; border:0px; position:absolute; width:225px; z-index:200; /*top:1em; /*left:0;*/ } .menu li:hover ul{ display:block; } .menu li li { background:url('http://i45.tinypic.com/nvxxqg.jpg') bottom left no-repeat; display:block; float:none; margin:0px; padding:0px; width:225px; } .menu li:hover li a{ background:none; } .menu li ul a{ display:block; height:35px; font-size:12px; font-style:normal; margin:0px; padding:0px 10px 0px 15px; text-align:left; } .menu li ul a:hover, .menu li ul li:hover a{ background:#2580a2 url('http://i50.tinypic.com/66elwh.jpg') center left no-repeat; border:0px; color:#ffffff; text-decoration:none; } .menu p{ clear:left; }

xxxx

  • Replace This Text With Your Featured Post 1 Description.
  • Replace This Text With Your Featured Post 2 Description.
  • Replace This Text With Your Featured Post 3 Description.
  • Replace This Text With Your Featured Post 4 Description.

Selasa, 01 Juni 2010

contoh program pascal.

PROGRAM DEALER;
USES CRT;
VAR
J :integer;
JM : INTEGER;
m :string;
H,D,HB: REAL;
pot,tot: real;
BEGIN
CLRSCR;
WRITELN('PILIH JENIS MOBIL YANG AKAN DIBELI :');
WRITELN('1.BMW');
WRITELN('2.Mercedes Benz');
write('Pilih Salah Satu,1 atau 2:');readln(j);
if (j=1) then
begin
writeln('jumlah mobil yang anda pesan :');readln(jm);
h:=470000000;
m:='bmw';
if(jm>5) then
begin
pot:=(0.07*h)*jm;
tot:=(h*jm)-pot;
end
else
begin
pot:=(0.05*h)*jm;
Tot:=(h*jm)-pot;
end
end;
if (j=2) then
begin
writeln('jumlah mobil yang anda pesan :');readln(jm);
h:=530000000;
m:='M.benz';
if(jm>5) then
begin
pot:=(0.07*h)*jm;
tot:=(h*jm)-pot;
end
else
begin
pot:=(0.05*h)*jm;
Tot:=(h*jm)-pot;
end
end;
writeln('anda membeli mobil jenis',m,' dengan jml ',jm);
writeln('total potongan:',pot:15:2,'dan total harga rp. ',tot:15:2);
readln;
end.