验证中...
Languages: C/C++
Categories: 其他
Latest update 2019-02-12 19:12
gistfile1.txt
Raw Copy
#include "stdio.h"
int fun(int n)
{
int i,s=1;
for(i=1;i<=n-1;i++)
{
s=(s+1)*2;
}
return s;
}
int main()
{
int n,x;
scanf("%d",&n);
x=fun(n);
printf("%d",x);
return 0;
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search