about | help | code help+videos | done | prefs |
Write a method that returns 'true' if you win a game involving tossing three coins. You win if all three coins are heads. You also win if all three of the coins are tails. In all other cases you lose. Each of the three boolean parameters represents a single coin. Heads is represented by a value of 'true' while tails is represented by a value of 'false'. jan8_2016_APSLHLwin(true, true, true) → true jan8_2016_APSLHLwin(false, false, false) → true jan8_2016_APSLHLwin(true, false, false) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy