TopTime = 25
i = 1
print (math.floor((TopTime/i+9)))
Output 34?
TopTime = 25
i = 1
print (math.floor((TopTime/i+9)))
Output 34?
You have not posted a problem. You posted a script that runs and you even posted what it does. You have in no way indicated your intention for what you think the program you wrote is supposed to do or what you want it to do, you only posted a program, labeled it as a math problem and provided the answer. The answer is correct.
You are dividing by one. That is strange. Perhaps you meant to add 9 to that, in which case i+9 should be in parentheses, as per the order of operations.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Works for me
Got it, The i+9 had to be in parenthesis