I need to write a program that simulates a lottery. The program should have a list of seven numbers that represent a lottery ticket. It should then generate seven random numbers. After comparing the numbers the proram should output a prize for three matching numbers, four matching numbers, etc.
I'm not sure how to do the last bit where I need to check if there are three, four, five, etc matching numbers and output a prize depending on how many numbers are matching.
Aucun commentaire:
Enregistrer un commentaire