clc clear k=1 sum_terms=0 sum_terms<=10000; sum_terms=sum_terms + 3^k k=k +1; disp(k-1) disp(sum_terms)
To embed this project on your website, copy the following code and paste it into your website's HTML: