2.prg

来自「一个用vc编写的进销存的管理系统的毕业设计」· PRG 代码 · 共 20 行

PRG
20
字号
set talk off 
CLEAR
input "请输入你要显示的字母数:" to t
for i=1 to t step 1
for j=1 to 2*i-1 step 1
a=chr(asc("A")+i-1)
@ 10+i,10-i+j say a
endfor 
 endfor
 z=i
 i=i-2
for x=t-1 to 1 step -1
for j=1 to 2*i-1 step 1
a=chr(asc("A")+x-1)
@ 10+z,10-i+j say a
endfor
z=z+1
i=i-1
endfor

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?