程序:

 1 #include<stdio.h>
 2 
 3 int main() {
 4     int i,n,s = 1;
 5     scanf("%d",&n);
 6     for(i=1; i<n; i++) {
 7         s = (s+1)*2;
 8     }
 9     printf("%d",s);
10 }

 

相关文章:

  • 2021-11-21
  • 2021-08-17
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2021-08-30
相关资源
相似解决方案