编程用matlab做1+2+4+8+...+1024

2025-04-16 07:47:23
推荐回答(1个)
回答1:

clc;clear
s=0;
for i=0:10
temp=2^i;
s=s+temp;
end
s