区间判断选择
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double a;
cin >> a;
if(a >=0 && a <= 25) printf("Intervalo [0,25]\n");
else if(a > 25 && a <= 50) printf("Intervalo (25,50]\n");
else if(a > 50 && a <= 75) printf("Intervalo (50,75]\n");
else if(a > 75 && a <= 100) printf("Intervalo (75,100]\n");
else printf("Fora de intervalo");
return 0;
}