Senin, 27 Desember 2010

Ni sourcecodenya :

program square;
uses wincrt;
var                                                    
N ,i,j : integer;

begin
writeln('*************************************');
writeln('* Program segitiga bintang membesar *');
writeln('*************************************');

write ('Masukkan angka : '); readln (n);
writeln;
writeln('Hasilnya : ');

for i:= 1 to N do
begin
     for j := 1 to i do
     begin
     write('*');
     end;
     writeln;
end;



end.

Ni gambar running programnya :

Categories:

0 comments:

Posting Komentar