摘要: #include <stdio.h> int main(){ int n,sum,x,y; sum=1; x=1; y=2; scanf("%d",&n); do { sum +=y; y=y*2; x++; }while(x<=n); printf("n=%d时,sum=%d\n",n,sum); 阅读全文
posted @ 2021-04-01 19:26 靓仔欧耶 阅读(34) 评论(0) 推荐(0) 编辑