为了帮助大家复习好2014年计算机等级考试,本次我们考吧网特为广大考生整理了计算机等级考试模拟试题,希望广大考生能够喜欢。本次主要汇编了计算机等级《二级web程序设计》精选试题:
读写程序题
1.dim n, s, number
s=1
number=prompt( "请输入一个数")
n=number
if n<1000 and n>=1 then
for i=1 to n
s=s*i
next
document.write"计算结果为:"
for i=1 to n-1
document.write i & "*"
next
document.write n & "="
document.write s
else document.write"输入有误"
end if
推荐阅读: