about | help | code help+videos | done | prefs |
hexify
This function takes a single number with meaningful returned values from 0 up to 15. When the input is 0-9 return the string of that number. When the input is 10 return "A", 11 is "B", 12 is "C", ... 15 is "F" Hint: To convert a number to a String, you cannot typecast! ""+5 results in "5" For all other numbers return "Err" hexify(21) → "Err" hexify(0) → "0" hexify(1) → "1" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy