解题思路:
注意事项:
参考代码:
#include <cstdio>
int main()
{
int n,t=1;
scanf("%d",&n);
for(int a = 1;a < n;a ++)
t=(t+1)*2;
printf("%d",t);
return 0;
}
0.0分
2 人评分
人见人爱A+B (C++代码)浏览:1060 |
C语言程序设计教程(第三版)课后习题8.4 (C++代码)浏览:606 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:660 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:847 |
川哥的吩咐 (C++代码)浏览:1061 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1546 |
兰顿蚂蚁 (C++代码)浏览:1213 |
简单的a+b (C语言代码)浏览:382 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:678 |
C语言训练-数字母 (C语言代码)浏览:666 |