about | help | code help+videos | done | prefs |
Write a method that accepts 3 boolean variables. The methods returns the number of these variables which have the value of 'true'. So if any two of the booleans are true and the other one is false, return 2. If all of them are true return three. For more examples, look at the test data. quiz2020_09_21_APP1SLHL_howManyTrue(true, true, true) → 3 quiz2020_09_21_APP1SLHL_howManyTrue(true, false, false) → 1 quiz2020_09_21_APP1SLHL_howManyTrue(false, true, true) → 2 ...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: 220
Copyright Nick Parlante 2017 - privacy