So I am doing a HW assingment for a class where we have to do a logic loop function seen below. I have gotten my VBA to work for every condition except for when x<50. I tried making a do while loop that will subtract 5 until x falls below 50 but instead any number that is 55 and more, it just spits out the answer 0. What am I doing wrong?