文章

14

粉丝

131

获赞

7

访问

28.4k

头像
计算函数 题解:
P1037
发布于2023年11月11日 16:08
阅读数 417

#include  "stdio.h"
int main() {
	int x,y;
	scanf("%d",&x);
	if(x <1) {
		y=x;
		printf("%d",y);
	} else  if(x <10) {
		y=2*x-1;
		printf("%d",y);
	} else {
		y=3*x-11;
		printf("%d",y);
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发