masterhand,
ilan is correct. What you have written is for the while loop to run if at least one of them is under 100.
You want it to terminate when one goes over, so you check if both are under 100.