Pages

Sabtu, 25 Desember 2010

PASCAL - BINTANG.....

PROGRAM PASCAL DENGAN OUTPUT SEPERTI INI

*
**
***
****
*****

program bintang;
program nilai_huruf;
uses wincrt;

var
   baris :integer;
   kolom :integer;
   akhir :integer;
begin
write('panjang bintang = ');readln(akhir);
writeln;
if akhir=0 then
writeln('ohhh ga bisa');

for baris:=1 to akhir do
    begin
         for kolom:=1 to baris do
         write('*');
         writeln;
    end;
end.
Print Friendly and PDF

Artikel Terkait:

0 komentar:

Posting Komentar

Related Posts Plugin for WordPress, Blogger...