每日一题 6

在这里插入图片描述
#include"stdio.h"
void main()
{
int x,y;
printf(“please input the x:\n”);
scanf(“x=%d”,&x);
if(x<1)
y=x;
else if(x<10)
y=2x-1;
else
y=3
x-1;
printf(“y=%d\n”,y);

猜你喜欢

转载自blog.csdn.net/drake_gagaga/article/details/113146847