70,023
社区成员




if (x < 1)
xxxx
else if (x < 10)
xxxxx
else
xxxx
#include <stdio.h>
int main()
{
float x;
scanf ("%f",&x);
if(x<1)
printf("y=%f",x);
else if(x<10)
printf("y=%f",3-x/5);
else
printf("y=%f",3*x-10);
return 0;
}