c语言求助!!

c语言求助!!怎么做,

第1个回答  2018-04-28
#include <stdio.h>
int main()
{
float x,y;
scanf("%f",&x);
if(x<1) y=x;
else if(x<10) y=x*2-1;
else if(x<20) y=x*10;
else y=x*3-11;
printf("%f",y);
return 0;
}

本回答被网友采纳
第2个回答  2020-01-13
相似回答