VF问题……图形输出的
2个回答
展开全部
CLEAR
LOCAL i
FOR i = 1 TO 6
? REPLICATE("●", i-1) + SPACE((7-i)*2) + REPLICATE("●", 7-i) + SPACE(i*2)
ENDFOR
? REPLICATE("●", 13)
FOR i = 1 TO 6
? SPACE((7-i)*2) + REPLICATE("●", i) + SPACE(i*2) + REPLICATE("●", 6-i)
ENDFOR
LOCAL i
FOR i = 1 TO 6
? REPLICATE("●", i-1) + SPACE((7-i)*2) + REPLICATE("●", 7-i) + SPACE(i*2)
ENDFOR
? REPLICATE("●", 13)
FOR i = 1 TO 6
? SPACE((7-i)*2) + REPLICATE("●", i) + SPACE(i*2) + REPLICATE("●", 6-i)
ENDFOR
更多追问追答
追问
被我改了一下,哪里错了
text
可改变大小的风车
endtex
CLEAR
input"你渴望的风车的边长" to n
LOCAL i
FOR i = 1 TO n
? REPLICATE("●", i-1) + SPACE((n+1-i)*2) + REPLICATE("●", n+1-i) + SPACE(i*2)
ENDFOR
? REPLICATE("●", 2n+1)
FOR i = 1 TO n
? SPACE((n+1-i)*2) + REPLICATE("●", i) + SPACE(i*2) + REPLICATE("●", n-i)
ENDFOR
retu
追答
text
可改变大小的风车
endtex
CLEAR
input"你渴望的风车的边长" to n
LOCAL i
FOR i = 1 TO n
? REPLICATE("●", i-1) + SPACE((n+1-i)*2) + REPLICATE("●", n+1-i) + SPACE(i*2)
ENDFOR
? REPLICATE("●", n*2+1)
FOR i = 1 TO n
? SPACE((n+1-i)*2) + REPLICATE("●", i) + SPACE(i*2) + REPLICATE("●", n-i)
ENDFOR
retu
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询