Basic Slot Machine
<p>I'm trying to create simple slot machine with three slots.  Each slot will generate a random number between 0 and 9 inclusive.  The user will start with 1,000 coins and can wager any number of coins per slot pull. The payouts are: if 2 slots equal each other the user wins 10x the wager, if 3 slots equal each other the user wins 100x the wager, and if 0 slots equal the user loses the wagers. I want the output to generally look like this:</p>

<p>Slot Machine<br>
You have 1000 coins.<br>
Press 0 to exit, any other number to play that many coins per spin<br>
1000<br>
Spin: 4 6 6<br>
You won 10000 coins! You now have 11000 coins.<br>
Press 0 to exit, any other number to play that many coins per spin<br>
11000<br>
Spin: 4 4 1<br>
You won 110000 coins! You now have 121000 coins.<br>
Press 0 to exit, any other number to play that many coins per spin<br>
121000<br>
Spin: 5 1 9<br>
You lost 121000 coins! You now have 0 coins.<br>
Press 0 to exit, any other number to play that many coins per spin<br>
10<br>
You ran out of coins.  Thanks for playing.  </p>

<p>I'm not very familiar with programming and a few of the seniors I look after would enjoy this for a little fun with them learning how to use a computer. Thanks.</p>
