id/email
password
forgot password
create account
 
Or use Mozilla Persona:

Nick's post on Why Persona is Great
about | help | code help+videos | done | prefs
CodingBat code practice

Java > Logic-1 > greenTicket
prev  |  next  |  chance

You have a green lottery ticket, with ints 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.

greenTicket(1, 2, 3) → 0
greenTicket(2, 2, 2) → 20
greenTicket(1, 1, 2) → 10

...Save, Compile, Run


Show output only (no red/green)

prev  |  next  |  chance   |  CodingBat  >  Logic-1

Forget It! -- delete my code for this problem

Progress graphs, just for fun:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Code Help and Videos

Misc Code Practice

160.0

Copyright Nick Parlante 2006-11 - privacy