Hey everybody, got a simple question for ya. Im making a function file to determine when it is safe to drive for a person who has been drinking. The value for hours in the output is wrong, but the formula works well outside of the loop. The answer should be around 2-3 hours, but the while loop consistently returns .28 hours. Heres my code
BAC=.13;Hrs=0;Rt=.0140;while BAC>.08 BAC=BAC-(Hrs*.0140); Hrs=Hrs+.01end
Best Answer