慨当以慷


私信TA

用户名:spp154799

访问量:1150

签 名:

等  级
排  名 29460
经  验 475
参赛次数 0
文章发表 1
年  龄 0
在职情况 学生
学  校 南阳职业学院
专  业

  自我简介:

 

0.0分

17 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int num;
    scanf("%d",&num);
    int i,temp=1;
    for(i=1;i<num;i++){
        if(num==1)
            temp=1;
        else
            temp=(temp+1)*2;


    }
    printf("%d",temp);

    return 0;
}
2019-11-30 20:31:45
#include<stdio.h>
int main()
{
	int day,x1,x2;
	day=9;
	x2=1;
	while(day>0)
	{
		x1=(x2+1)*2;
		x2=x1;
		day--;
		
	}	
	printf("桃子数x2=%d\n",x1);
	return 0;
	
	
}
2019-11-02 17:30:28
#include<stdio.h>
int main()
{
	int a=1,b,n;
	scanf("%d",n);
	while(n>0)
	{
		b=2*(a+1);
		a=b;
		n--;
	}
	printf("%d\n",b);
	return 0;
}
大佬,,,,救我啊
输入后敲回车没反应
2019-11-01 20:10:00
大佬nb
2019-10-28 23:38:39
  • «
  • 1
  • »