Fake Powerball

Write a program that lets the human enter in their six numbers. Then have the computer choose six random numbers. If all the numbers match (in order), then say that they won!

For Powerball, the first five numbers should be 1-69, and the last number is from 1-26.

What You Should See

Enter your Powerball numbers, in order: 7 9 33 46 51 17

This week's Powerball drawing: 4 8 19 27 34 10
Your numbers were: 7 9 33 46 51 17

You didn't win.



©2013–2015 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License