#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=3x-1;
printf(“y=%d\n”,y);
}
每日一题 6
最新推荐文章于 2023-07-16 19:00:53 发布
#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=3x-1;
printf(“y=%d\n”,y);
}