Bomber Graf!TY Indonesia

Jangan cuma kanvas yang di gambar tembok juga

Perulangan pada pascal

Program pascal dengan perulangan

While do

program weldo;

var

n:integer;

i:integer;

begin

write(‘masukan nilai’);readln(n);

i:=1;

while i <10 do

begin

writeln(‘lulus’);

i:=i+1;

end;

begin

if n <=100 then writeln(‘lulus’);

end;

readln;

end.

Repeat until

var

i:integer;

begin

i:=0;

repeat

i:=i+1;

writeln(i)

until i=5;

end.

For to do

var

i:integer;

begin

for i:=1 to 5 do

begin

writeln(‘pascal’);

end;

end.

25 Mei 2010 - Posted by | Uncategorized

Belum ada komentar.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: