Question: 2. Lottery Number Generator C Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write
2. Lottery Number Generator C Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop that steps through the array, randomly generating a number in the range of 0 through 50 for each element. Then have the use enter in 7 lottery numbers and store those to an array. The program should then display the lottery numbers and check to see of the user von the jackpot and display a congratulatory message if so. C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
