Design a program that generates a 7-digit lottery number


Lottery Number Generator

Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Should have a loop that steps through the array, randomly generating a number in the range of 0 through 9 for each element. Then another loop that displays the contents of the array.

Solution Preview :

Prepared by a verified Expert
Business Management: Design a program that generates a 7-digit lottery number
Reference No:- TGS02831613

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)