In order to play table games at the casino you need some tokens. Red tokens cost euros and yellow tokens cost . Write a function @buy_tokens(n)@ that given a number of euros such that , it returns the equivalence in tokens. When several equivalences are possible the function returns the one minimizing the total number of tokens.
Author: Jorge Castro
Generation: 2026-01-25T17:40:08.581Z
© Jutge.org, 2006–2026.
https://jutge.org