Given n, find the sum of the digits that make up 2^n.
Example:
Input n = 7 Output b = 11
since 2^7 = 128, and 1 + 2 + 8 = 11.
1556 Solvers
Generate N equally spaced intervals between -L and L
364 Solvers
Number of digits in an integer
235 Solvers
260 Solvers
182 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today