Home > Software engineering >  VB 6.0
VB 6.0

Time:09-29

The Do While 1
A=Rnd * (10-1 + 1) + 1
C=Rnd * (10-1 + 1) + 1
B=Rnd * (10-1 + 1) + 1
If a=c=b Then? (how to exit)
Loop

CodePudding user response:

If a=c and a=b Then exit the do

CodePudding user response:

Can't quit the loop

CodePudding user response:

refer to the second floor z2269209940 response:
cannot quit cycle


What is your a, b, c types of data? Is a single type of RND, many decimal places, if a=b and a=c probability is very low!
.
"Do-it-yourself" course.