回 帖 发 新 帖 刷新版面

主题:猜数字游戏

cls
s=0
for i=1 to 猜几次
  input a
  if a<i then print "xiao"
  if a>i then print "da"
  if a=i then print "ok!":s=s+加多少分
next i
print s

注:我是刚学QB的小弟弟,请多多指教!


回复列表 (共3个回复)

沙发

中文的地方需要自己修改!

板凳

[em14]怎么没人回帖啊?不好玩?[em14]  [em18]

3 楼

randomize timer
a=int(rnd*90)+10
do
input b
if b=a then exit do
if b>a then print "大了"
if b<a then print "小了"
k=k+1
loop
print k

我来回复

您尚未登录,请登录后再回复。点此登录或注册