用VFP编写下列图形 *** ***** *******

2025-03-03 19:33:10
推荐回答(2个)
回答1:

试试下面的:

clear
for i=-3 to 3
??space(4-abs(i))
for j=2*abs(i)+1 to 1 step -1
??"*"
endfor
?
endfor

回答2:

clear
for i=2 to 4
?space(10+i)
for j=1 to 2*i-1
??"*"
endfor
?
endfor
return