Question: 2. Silly Lottery NOTE: MUST use nested if to get credit A person purchased a lottery ticket with a three-digit random number. Ask user to

 2. Silly Lottery NOTE: MUST use nested if to get credit

2. Silly Lottery NOTE: MUST use nested if to get credit A person purchased a lottery ticket with a three-digit random number. Ask user to provide the three digits (int a,b, and c), each from 09. - If the numbers are all different from each other, print: Sorry, you lose. - If two of the numbers are the same, print: You win $10 - If all of the numbers are the same, print: You win $20. Copy/Paste your code here. Also upload the java file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!