You're *very* close with this one. Remember that r is input as a double, not a string.
Sum all integers from 1 to 2^n
8412 Solvers
274 Solvers
461 Solvers
228 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!