about | help | code help+videos | done | prefs |
Write a method that returns an array consisting of all the positive multiples of 'multsOf' up to, and possibly including, 'max'. Note that 'max' is ONLY included if 'max' is a multiple of 'multsOf'. Look at the test data for examples. As preconditions, you may assume that multsOf>0 and max>=multsOf quiz2023_05_31_P1SL_listMults(28, 144) → [28, 56, 84, 112, 140] quiz2023_05_31_P1SL_listMults(4, 29) → [4, 8, 12, 16, 20, 24, 28] quiz2023_05_31_P1SL_listMults(5, 30) → [5, 10, 15, 20, 25, 30] ...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: 250
Copyright Nick Parlante 2017 - privacy