VB6.0:输入N,输出N位随机正整数.(写出代码)
1个回答
2013-05-06
展开全部
Private Sub Form_Load()
Dim n As Integer, b As Integer
n = Int(InputBox("请输入一个数", "输入"))
Show
For k = 1 To n
Print Int(Rnd * 1000)
Next k
End Sub
Dim n As Integer, b As Integer
n = Int(InputBox("请输入一个数", "输入"))
Show
For k = 1 To n
Print Int(Rnd * 1000)
Next k
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询