Every Dark Light is Followed by a Light Morning ((:

yah...sudah bisa tersenyum setelah hari itu ((:

memang awalnya aku yang salah, tapi tolong lah...jangan dengan "MARAH" mengingatkanku. karena itu justru membuatku semakin benci...
sebenarnya, aku sama sekali tidak bermaksud membuat kesalahan itu, hanya reflek yang tak tertahan...di campur dengan rasa benci yang tak kunjung aku menangkan...hufh

tapi sudah lah...
semua udah clear (:

sebetulnya dalam kemarahanku juga ada rasa takut kehilangan. you know that I LOVE HIM SO MUCH (:
aku ngga mau kesalahanku terulang untuk yang kedua kalinya...


*Memang tidak ada pacar yang sempurna, tapi pacar yang sempurna adalah yang bisa saling memaafkan kesalahan yang di lakukan*

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

PROGRAM FIBONACCI DENGAN BAHASA PASCAL

program bil_fibonacci;
uses wincrt;
const
n=10;
var
i, f, f1, f2: integer;
x: array[1..n] of integer;

begin
clrscr;
writeln('ingin mencetak bilangan fibonacci');
write('sampai suku ke - '); readln (x[i]);
writeln;
writeln('suku ke- 1= ',1);
writeln('suku ke- 2= ',1);
f1:= 1; f2:=1;
for i:=3 to n do
begin
f:=f1+f2;
writeln('suku ke-',i:2,'=',f:3);
f2:=f1; f1:=f;
end;

end.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

PROGRAM MENGHITUNG LUAS BIDANG SEGITIGA DAN SEGIEMPAT DENGAN BAHASA PASCAL

program meghitungLuas;
uses crt;
var pil: char;

function LuasSegitiga(al, tg: integer): real;
begin
LuasSegitiga:=1/2*al*tg;
end;

function LuasSegiempat(p, l: integer): integer;
begin
LuasSegiempat:=p*l;
end;
procedure biodata;
begin writeln('============================');
writeln('NAMA = Noor fitriana Hastuti');
writeln('NIM = M0508059');
writeln('============================');
end;
procedure inputLuasSegitiga;
var al, tg: integer;
begin
writeln;
writeln('MENCARI LUAS SEGITIGA');
writeln;
write('MASUKKAN ALAS : '); readln(al);
write('MASUKKAN TINGGI : '); readln(tg);
write('LUAS SEGITIGA : ',LuasSegitiga(al,tg):3:1);
end;
procedure inputLuasSegiempat;
var p, l: integer;
begin
writeln;
writeln('MENCARI LUAS SEGIEMPAT');
writeln;
write('MASUKKAN PANJANG : '); readln(p);
write('MASUKKAN LEBAR : '); readln(l);
writeln;
write('LUAS SEGIEMPAT : ',LuasSegiempat(p,l));
end;



{===program utama===}

begin repeat
clrscr;
biodata;
writeln('MENU');
writeln;
writeln('1. LUAS SEGITIGA');
writeln('2. LUAS SEGIEMPAT');
writeln('3. EXIT');
writeln;
write('PILIHAN ANDA: '); readln(pil);
until (pil='1') or (pil='2') or (pil='3');
case pil of
'1': inputLuasSegitiga;
'2': inputLuasSegiempat;
'3': begin
clrscr;
readln;
end;

end;
readln;
end.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

PROGRAM PALINDROM DENGAN BAHASA PASCAL

(*author: noor fitriana, s1 ilmu komputer UNS 2008*)
program palindrom;
uses wincrt;
var
x: integer;
teks, teks1, teks2 : string[10];
i: integer;
ul: char;

begin
repeat
write('MASUKAN TEKS YANG ANDA INGINKAN: '); readln(teks);
x:= length(teks);

for i:= 1 to x do
teks1:=teks1 + teks[i];
for i:=x downto 1 do
teks2:=teks2 + teks[i];

if teks1 = teks2 then
writeln('TEKS YANG ANDA MASUKAN TERMASUK PALINDROM')
else
writeln('TEKS YANG ANDA MASUKAN BUKAN PALINDROM');
write('MAU COBA LAGI? [Y/T]: '); readln(ul);
until upcase (ul)<>'Y';
readln;


end.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

PROGRAM KONVERSI KATA DENGAN BAHASA PASCAL

program mengonversi;
uses wincrt;
var
teks: string[10];
selisih, i, x: integer;
ul: char;

begin
clrscr;
repeat

write('MASUKAN TEKS YANG ANDA INGINKAN: '); readln(teks);
selisih:= ord('a')-ord('A');
x:=length(teks);
for i:= 1 to x do
begin
{SELISIH 'A' DAN 'a'=32}
if (teks[i]>='A') and (teks[i]<='Z') then
teks[i]:=chr(ord(teks[i])+selisih)
else
{selisih 'a' dan 'A'=32}
if (teks[i]>='a') and (teks[i]<='z') then
teks[i]:=chr(ord(teks[i])-selisih);
end;

writeln;
write('MEMBACA TEKS YANG TELAH ANDA MASUKAN: '); writeln(teks);
writeln;

write('MAU COBA LAGI? [Y/T]: '); readln(ul);
until upcase (ul)<>'Y';
readln;

end.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

PROGRAM KONVERSI ENKRIPSI DAN DEKRIPSI DENGAN BAHASA PASCAL

(*author: noor fitriana, s1 ilmu komputer UNS 2008*)
program EnkripDekrip;
uses wincrt;
var
teks:string[10];
x, y,i : integer;
ul: char;
begin
repeat
clrscr;
writeln('FITRI,MASUKAN TEKS YANG ANDA INGINKAN: '); readln(teks);
writeln;
repeat
writeln('PILIH TINGKATAN YANG ANDA INGINKAN(-5 sampai 5): '); readln(y);
until (y>=-5) and (y<=5);

writeln;

x:= length(teks);
for i:=1 to x do
begin
teks[i]:=chr(ord(teks[i])+y);

end;
writeln;
writeln('HASIL TEKS YANG TELAH DI ENKRIPSI: '); writeln(teks);
writeln;
for i:=1 to x do
begin
teks[i]:=chr(ord(teks[i])-y);
end;
writeln('Teks yang Telah di Enkripsi Akan di Kembalikan Lagi ke Semula atau di dekripsi');
writeln('HASIL TEKS YANG DI DEKRIPSI: '); writeln(teks);
write('MAU COBA LAGI? [Y/T]: '); readln(ul);
until upcase (ul)<>'Y';
readln;


end.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS