about | help | code help+videos | done | prefs |
Given a 5-digit binary number, convert the number to a decimal value. Each digit is passed as an individual input, from most significant (d4) to least significant (d0). binaryToDecimal(1, 1, 1, 1, 1) → 31 binaryToDecimal(0, 0, 0, 0, 0) → 0 binaryToDecimal(0, 0, 1, 0, 1) → 5 ...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: 125
Copyright Nick Parlante 2017 - privacy