This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Rabu, 28 Oktober 2015

program percobaan

program qwerty;
uses crt;
procedure loving(i,j:integer);
begin
writeln;
for i:=i to 22 do
begin
for j:=1 to 60 do
begin
if i=1 then
begin
if((j>=14)and(j<=23))or((j>=39)and(j<=48))then
write('*')
else
write(' ');
end;
if i=2 then
begin
if((j>=11)and(j<=26))or((j>=36)and(j<=51))then
write('*')
else
write(' ');
end;
if i=3 then
begin
if ((j>=9)and(j<=28))or((j>=34)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=4 then
begin
if ((j>=7)and(j<=30))or((j>=32)and(j<=55)) then
write('*')
else
write(' ');
end;
if((i=5)or(i=8)) then
begin
if((j>=6)and(j<=56))then
write('*')
else
write(' ');
end;
if((i>=6)and(i<=7))then
begin
if((j>=5)and(j<=57))then
write('*')
else
write(' ');
end;
if i=9 then
begin
if((j>=7)and(j<=55))then
write('*')
else
write(' ');
end;
if i=10 then
begin
if((j>=9)and(j<=53)) then
write('*')
else
write(' ');
end;
if i=11 then
begin
if((j>=11)and(j<=51))then
write('*')
else
write(' ');
end;
if i=12 then
begin
if((j>=13)and(j<=49)) then
write('*')
else
write(' ');
end;
if i=13 then
begin
if ((j>=15) and (j<=47)) then
write('*')
else
write(' ');
end;
if i=14 then
begin
if((j>=17)and(j<=45)) then
write('*')
else
write(' ');
end;
if i=15 then
begin
if((j>=19)and(j<=43)) then
write('*')
else
write(' ');
end;
if i=16 then
begin
if((j>=21) and (j<=41)) then
write('*')
else
write(' ');
end;
if i=17 then
begin
if((j>=23) and (j<=39)) then
write('*')
else
write(' ');
end;
if i=18 then
begin
if((j>=25) and (j<=37)) then
write('*')
else
write(' ');
end;
if i=19 then
begin
if((j>=27) and (j<=35)) then
write('*')
else
write(' ');
end;
if i=20 then
begin
if((j>29) and (j<=33)) then
write('*')
else
write(' ');
end;
if i=21 then
begin
if((j>=30) and (j<=32)) then
write('*')
else
write(' ');
end;
if i=22 then
begin
if j=31 then
write('*')
else
write(' ');
end;
end;
writeln;
end;
writeln;
end;
 var a,b:integer;
 begin
 clrscr;
 writeln;
 loving(a,b);
 gotoxy(24,25);
 writeln(' I  LOVE  SMKN1  ');
 gotoxy(24,25);
 writeln(' I LOVE ....? ');
 gotoxy(15,25);
 writeln('|****** BY : David John Herik ******|');
 readln;
 end.

Output :

Share:

Senin, 19 Oktober 2015

Download Software nya :

fpc-2.6.2.x86_64-win64 Disini
fpc-2.6.2.i386-win32 Disini


Share:

Selasa, 22 September 2015

Program Perhitungan_Penjualan

program Perhitungan_Penjualan;
uses crt;
var
koba,naba:string;
juba,hada,jube,dis,pjk,toba:real;
begin
    clrscr;
 writeln('***** Program Perhitungan Penjualan *****');
 write(' Input Kode Barang : ');readln(koba);
 write(' Input Nama Barang : ');readln(naba);
 write(' Masukkan Harga dasar :Rp. ');readln(hada);
  write(' Masukkan Jumlah Beli Barang : ');readln(jube);
 juba:=hada*jube;
 dis:=0.4*juba;
 pjk:=(juba-0.4)*0.04;
 toba:=(juba+pjk)-0.4;
 writeln;
 writeln('-------------------------------------------');
 writeln(' Jumlah Bayar Barang :Rp.',juba:6:2);
 writeln('-------------------------------------------');
 writeln(' Discount :Rp.',dis:6:2);
 writeln('-------------------------------------------');
 writeln(' Pajak :Rp.',pjk:6:2);
 writeln('-------------------------------------------');
 writeln(' Total Bayar keseluruhan :Rp.',toba:6:2);
 writeln('___________________________________________');
 readln;
 end.

    OUTPUT :

Share:

Program Cetak_Angka

program cetak_angka;
uses    crt;
var
  n:integer;
  i:integer;
begin
clrscr;
write(' Tuliskan Angka 1 sampai dengan Angka : '); readln(n);
for i:= 1 to n do
writeln(i);
readln;
end.

OUTPUT :


Share:

Senin, 21 September 2015

program fungsi

program fungsi;
uses crt;
function whiled(A,B:integer): integer;
begin
while A<=B do
begin
writeln('saya waras');
A:=A+1;
end;
end;

var A,B : integer;
begin
clrscr;
write('Masukkan Nilai awal pengulangan : ');
readln(A);
write('Masukkan Nilai akhir pengulangan : ');
readln(B);
whiled(A,B);
readln;
end.

OUTPUT :



Share:

Program Dasar

program perkenalan;
uses crt;
bgein
clrscr;
writeln('Hai!!!');
writeln('Nama Saya Anonymus');
readln;
end.

Output :


Share:

fans

Blogger templates