You Are Reading

Silahkan Klik Link Di Bawah Untuk Beramal :

Dari Link Ini Saya Dapat Uang,walau hanya 1 perak.
1

Segitiga pascal

Unknown
Contoh Pembuatan Segitiga pada TURBO PASCAL :


program segitiga_pascal;
uses crt;
type pas=array [1..20,1..20] of longint;
var pascal : pas;
i,j,n : integer;
begin
pascal[1,1]:=1;
write('Banyak Level :');readln(n);{:=10;}
for i:=2 to n do
begin
pascal[i,1]:=1;
Pascal[i,i]:=1;
for j:=2 to i-1 do
pascal[i,j]:=pascal[i-1,j-1]+pascal[i-1,j];
end;
{write(pascal[2,1],'');
writeln; }
for i:=1 to n do
begin
for j:=1 to i do
write(pascal[i,j]);
writeln;
end;
end.
Silahkan Di Coba .

1 komentar:

sakurakozachery mengatakan...

Harrah's Cherokee Casino & Hotel - Mapyro
Harrah's 삼척 출장샵 Cherokee 김제 출장안마 Casino & Hotel · Hotel. 534 North Casino Drive, Cherokee, NC, 정읍 출장샵 28719 · (800) 703-7111 양주 출장안마 · Visit Website. http://www.harrahscherokee.com · Casino. Rating: 3.5 · 포천 출장마사지 ‎1,901 reviews

Posting Komentar

Join With Me , And Get Money!

 
Copyright 2010 Catatan Kecil