99问答网
所有问题
VB 1-100范围内被3整除 每行10个数 每个数占5列
如题所述
举报该问题
推荐答案 2012-04-05
Private Sub Command1_Click()
For i = 3 To 100 Step 3
j = j + 1
Print Format(i, "@@@@@");
If j Mod 10 = 0 Then Print
Next
End Sub
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/et7WOBWee.html
其他回答
第1个回答 2012-04-05
Private Sub Command1_Click()
For i = 1 To 100
If i Mod 3 = 0 Then
j = j + 1
Print i;
If j Mod 10 = 0 Then Print
End If
Next
End Sub
第2个回答 2012-04-05
for i=1 to 100
if i mod 3=0 then
j=j+1
print i
if j=10 then
print chr(13)
j=0
end if
next
相似回答
大家正在搜