clc clear k= 1 sum = 0 while sum <= 2000 sum = sum + 2^k k = k+1 end
To embed this project on your website, copy the following code and paste it into your website's HTML: