fork download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. float x;
  8. cin >> x;
  9. if (x >= 0 && x <= 25) cout << "Interval [0,25]";
  10. else if (x > 25 && x <= 50) cout << "Interval (25,50]";
  11. else if (x > 50 && x >= 75) cout << "Interval (50,75]";
  12. else if (x > 75 && x <= 100) cout << "Interval (75,100]";
  13. else cout << "Out of Intervals";
  14. return 0;
  15. }
Success #stdin #stdout 0s 5532KB
stdin
Standard input is empty
stdout
Interval [0,25]