本文介绍了数学科的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 有没有人可以帮助我解决分工问题我有一个使用VB6的b $ b。我正在编写一个程序,要求用户给出一个给定总和的正确答案,它应该给出两个可以很容易划分的数字 一个8岁的人,它应该是一个没有逗号部分 例如它应该给出一个像10/2而不是19/3的总和。 是否有某种类型的测试,我可以让它在它问之前运行这个问题是为了确保较大的数字可以用较小的数字来表示非逗号的答案,例如:3,4567或类似的东西,它应该最好只是一个1位的答案。 我的代码看起来像这样 Dim a,b,c为Long a = 1 + Int(Rnd * 12) b = 1 + Int(Rnd * 12) c = a / b Label2.Caption = a Label3 .Caption = b Label4.Caption = c 工作正常,但对8岁的孩子不好,如果可以的话请帮忙 谢谢Hi, is there anyone who can help me with a division problem i;m havingI an using VB6. I am writing a program wich asks the user to give the correct answer to a given sum, it should give two number which can be easily dividedby a 8 year old and it should be a answer without the comma partfor instance it should give a sum like 10 / 2 and not 19 / 3. Is there some type of test that i can let it run before it asks the question to make sure that the greater number is diviseable by the smaller number to give an non comma answer eg: 3,4567 or something the like, it should preferably just be a 1 digit answer. my code looks like this Dim a, b ,c as Longa = 1 + Int(Rnd * 12)b = 1 + Int(Rnd * 12)c = a / b Label2.Caption = aLabel3.Caption = bLabel4.Caption = c which work fine but not good for an 8 year old, please help if you can Thanks推荐答案 展开 | 选择 | Wrap | 行号 这篇关于数学科的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-26 23:47