设为首页收藏本站

Scripts 学盟

 找回密码
 加入学盟

QQ登录

只需一步,快速开始

查看: 824|回复: 1

vbscript中用for next加文本符号划倒金字塔 dim a for i=1 to 7 a=a+"■" response. [复制链接]

匿名  发表于 2013-6-15 11:17:14
vbscript中用for next加文本符号划倒金字塔dim afor i=1 to 7a=a+"■"response.Write(a)response.Write("")next正的是这样写,倒的代码怎么写?

管理员

超级大菜鸟

Rank: 9Rank: 9Rank: 9

混混@普宁.中国 实名认证  发表于 2013-6-15 18:27:30 |显示全部楼层
Dim a

For i=1 To 7
        a= String(8-i, "■")
        Response.Write(a & vbCrLf)
Next

使用道具 举报

您需要登录后才可以回帖 登录 | 加入学盟

手机版|Scripts 学盟   |

GMT+8, 2024-3-29 14:36 , Processed in 1.107700 second(s), 12 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部