简单printf输出
#include <iostream>
using namespace std;
int main()
{
double x;
cin >> x;
if (x >= 0 && x <= 25) {
printf("Intervalo [0,25]\n");
} else if (25 < x && x <= 50) {
printf("Intervalo (25,50]\n");
} else if (50 < x && x <= 75){
printf("Intervalo (50,75]\n");
} else if (75 < x && x <= 100) {
printf("Intervalo (75,100]\n");
} else {
printf("Fora de intervalo\n");
}
}