program star;
uses wincrt;
var
i,n,j:integer;
a:string;
begin
write ('buat pola hingga baris ke_');
readln(n);
writeln ;
for i:=1 to n do
begin
for j:=1 to i do
begin
if (j mod 2)=1 then
a:='*' else a:='1';
write(a, ' ');
end;
writeln;
end;
end.
Program Bintang
02.53 |
Label:
Contoh Program Pascal
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar