about | help | code help+videos | done | prefs |
Given the number of cows and chickens on a farm, compute the total number of legs on those animals. If the farm is a mutant farm (indicated by the boolean parameter), then each animal has an extra leg. howManyLegs2(1, 1, false) → 6 howManyLegs2(1, 1, true) → 8 howManyLegs2(1, 2, false) → 8 ...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: 100
Copyright Nick Parlante 2017 - privacy