0
/ 50
You have a green lottery ticket, with int
s a
, b
, and c
on it. If the numbers are all different from each other, the result is 0. If all...
You have a green lottery ticket, with int
s a
, b
, and c
on it. If the numbers are all different from each other, the result is 0. If all of the numbers are the same, the result is 20. If two of the numbers are the same, the result is 10.
Examples:
greenTicket(1, 2, 3) -> 0
greenTicket(2, 2, 2) -> 20
greenTicket(1, 1, 2) -> 10
Your feedback will appear here when you check your answer.