标题:输入金字塔层数,显示金字塔
只看楼主
kuaican510
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2007-4-18
 问题点数:0 回复次数:0 
输入金字塔层数,显示金字塔
clea
input "金字塔层数x=" to x
for i=1 to x
?
for j=1 to x-i
?? " "
endfor
for k=1 to i*2-1
?? "* "
endfor
endfor
搜索更多相关主题的帖子: 金字塔层 endfor 输入 cleainput xfor 
2007-05-25 08:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-142350-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.503095 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved