题目: |
program t4;
const n=6;m=3;
var i,j,k:integer;
begin
for i:=-n to n do
begin
k:=n-abs(i);
write(' ': 39-k);
for j:=-k to k do
if abs(j)>k-m
then write(n-(i+n)div 2)
else write(' ');
writeln;
end;
end.
程序运行的结果是: 输出: 6
666
55555
555 555
444 444
333 333
22222
111
0
|