随机产生一个4位正整数,求出该数的倒序数,输出该数及倒序数.如为1234,则倒序为4321.完成以下代码.dim x as integer,s as string,d as stringrandomizex = int(________________)s = int______________(x)d = right(s,1) +_______
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/21 08:02:30
![随机产生一个4位正整数,求出该数的倒序数,输出该数及倒序数.如为1234,则倒序为4321.完成以下代码.dim x as integer,s as string,d as stringrandomizex = int(________________)s = int______________(x)d = right(s,1) +_______](/uploads/image/z/1769628-12-8.jpg?t=%E9%9A%8F%E6%9C%BA%E4%BA%A7%E7%94%9F%E4%B8%80%E4%B8%AA4%E4%BD%8D%E6%AD%A3%E6%95%B4%E6%95%B0%2C%E6%B1%82%E5%87%BA%E8%AF%A5%E6%95%B0%E7%9A%84%E5%80%92%E5%BA%8F%E6%95%B0%2C%E8%BE%93%E5%87%BA%E8%AF%A5%E6%95%B0%E5%8F%8A%E5%80%92%E5%BA%8F%E6%95%B0.%E5%A6%82%E4%B8%BA1234%2C%E5%88%99%E5%80%92%E5%BA%8F%E4%B8%BA4321.%E5%AE%8C%E6%88%90%E4%BB%A5%E4%B8%8B%E4%BB%A3%E7%A0%81.dim+x+as+integer%2Cs+as+string%2Cd+as+stringrandomizex+%3D+int%28________________%29s+%3D+int______________%28x%29d+%3D+right%28s%2C1%29+%2B_______)
随机产生一个4位正整数,求出该数的倒序数,输出该数及倒序数.如为1234,则倒序为4321.完成以下代码.dim x as integer,s as string,d as stringrandomizex = int(________________)s = int______________(x)d = right(s,1) +_______
随机产生一个4位正整数,求出该数的倒序数,输出该数及倒序数.如为1234,则倒序为4321.完成以下代码.
dim x as integer,s as string,d as string
randomize
x = int(________________)
s = int______________(x)
d = right(s,1) +_____________
show
print "产生的数:"; x,"倒序数:"; d
end sub
随机产生一个4位正整数,求出该数的倒序数,输出该数及倒序数.如为1234,则倒序为4321.完成以下代码.dim x as integer,s as string,d as stringrandomizex = int(________________)s = int______________(x)d = right(s,1) +_______
Dim x As Integer,s As String,d As String
Randomize
x = Int(Rnd() * 9000 + 1000)
s = Str(x)
d = Right(s,1) + Mid(s,4,1) + Mid(s,3,1) + Mid(s,2,1)
Show
Print "产生的数:"; x,"倒序数:"; d