about | help | code help+videos | done | prefs |
apcsaArraysCreateThree
Given an input int num, create and return a new array of three int values, as follows. -Index 0 should hold the value num. -Index 1 should hold num + 10. -Index 2 should hold (3 * num + 10) % num. Precondition: num != 0apcsaArraysCreateThree(5) → [5, 15, 0] apcsaArraysCreateThree(-5) → [-5, 5, 0] apcsaArraysCreateThree(37) → [37, 47, 10] ...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: 110
Copyright Nick Parlante 2017 - privacy