#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);
}
#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);
}