一段程序找错
#include<stdio.h>intmain(){floatx,y;scanf("%f",&x);if(x<1)y=x;else(x>=1&&x<10)y=2x-1;...
#include<stdio.h>
int main()
{
float x,y;
scanf("%f",&x);
if(x<1)
y=x;
else(x>=1&&x<10)
y=2x-1;
else(x>=10)
y=3x-11;
printf("%f",y);
return 0;
} 展开
int main()
{
float x,y;
scanf("%f",&x);
if(x<1)
y=x;
else(x>=1&&x<10)
y=2x-1;
else(x>=10)
y=3x-11;
printf("%f",y);
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询