program soal12;
uses wincrt;
var
a, b : byte;
begin
a:=6;
while a<7 do
begin
b:=1;
while b<a do
begin
write('x');
b := b+1;
end;
a := a-1;
writeln;
end;
readln;
end.
program soal22;
uses wincrt;
var
a, b : byte;
begin
a:=1;
while a<7 do
begin
b:=1;
while b<a do
begin
write('x ');
b := b+1;
end;
a := a+1;
writeln;
end;
readln;
end.
0 komentar:
Posting Komentar