题目描述
浮点数用成了float
样例
#include<stdio.h>
int main()
{
double x;
scanf("%lf",&x);
if(x>=0&&x<=25)
printf("Intervalo [0,25]");
else if(x>25&&x<=50)
printf("Intervalo (25,50]");
else if(x>50&&x<=75)
printf("Intervalo (50,75]");
else if(x>75&&x<=100)
printf("Intervalo (75,100]");
else if(x<0||x>100)
printf("Fora de intervalo");
return 0;
}