I need to simulate an if statement (make a decision) but only by using Math.min(a,b) or Math.max(a,b) statements. It is a requirement.
Lets say "a" is a value entered by the user and "b" is a maximum value allowed already given. If "a" is less than or equal (a <= b) to the maximum "b" an action takes place, else another action is executed.
Any suggestion will be appreciated. Thanks!
Aucun commentaire:
Enregistrer un commentaire