Return Values
I'm working on a little code piece just for a bit of practice. I am curious on something however; I wish to setup a strong with variables inside that have return values in them. For Example: I have a random number generator that generates anything between 0 and 100, rounding to the 2nd decimal place(mimicking how money works). I wish to return multiple values with the most efficient payment method to make exact change. If the random number generator generated a number such as 74.57, the return value within a strong would say: "You must pay three $20's, one $10, four $1's, two quarters, one nickel, and 2 pennies. The problem I am having is figuring out how to setup these multiple return values without setting up multiple if else functions over and over again. If there is no other way, then I guess I'll take the tedious route. Looking for any suggestions!