Need Help Coding C Need Make Lottery Program Enter 5 Numbers 0 9 Program Generate 5 Rando Q37079677

I need help with coding with c++. I need to make a lotteryprogram where you enter in 5 numbers from 0-9 and the program willgenerate 5 random numbers 0-9 to represent the lottery numbers. I’malmost done, but the output isn’t exactly what I want. It worksfine, but the format should look like this:

lottery array: 7 4 9 1 3
user array: 4 2 9 7

p.s. I also need to count how many matching numbers there arefrom the user input and the lottery and need help with that aswell, because it says match is uninitialized for some reason.

I have been trying to

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.