简单写写
#include <cstdio>
int main()
{
float num;
scanf("%f", &num);
if(num > 100)printf("Fora de intervalo");
else if(num > 75)printf("Intervalo (75,100]");
else if(num > 50)printf("Intervalo (50,75]");
else if(num > 25)printf("Intervalo (25,50]");
else if(num >= 0)printf("Intervalo [0,25]");
else printf("Fora de intervalo");
return 0;
}