I'm making a math game for myself to improve on facts. When I was working on the division section I noticed that I need some help. I want the facts to be like 10/2 = 5 or 8/4 = 2, NOT 9/4 = 2.25. Do you get what I mean? Take a look at the script and reply if you can help. Thanks!
My division script:
Last edited by coka (2009-10-09 12:37:40)
Offline
You could just set all the numbers in set 2 to all even numbers.
Offline
Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)
forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}
Hope this helps!
Offline
scmb1 wrote:
Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)
forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}
Hope this helps!
I'll try it when I have time! I hope it works! Thanks!
Offline
coka wrote:
scmb1 wrote:
Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)
forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}
Hope this helps!I'll try it when I have time! I hope it works! Thanks!
![]()
Hey thanks a lot it worked!
Offline
coka wrote:
coka wrote:
scmb1 wrote:
Try this. I changed the variables to num1 and num2 just to make it easier for you to read. (It doesn't actually matter)
forever{
set num2 to (pick random (1) to (10))
set num1 to (pick random (num2) to (10))
if<((num1) mod (num2)) = 0>{
ask " " and wait
if<(answer)=(num1/num2)>{
change Correct by 1
end if}
end if}
end forever}
Hope this helps!I'll try it when I have time! I hope it works! Thanks!
![]()
Hey thanks a lot it worked!
![]()
No Problem!
Offline