You are viewing a single comment's thread. Return to all comments →
def howManyGames(p, d, m, s): # Return the number of games you can buy count = 0 i = p while s - i >= 0: count += 1 s -= i i = max(m, i - d ) return count
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween Sale
You are viewing a single comment's thread. Return to all comments →