fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. int a; cin >> a;
  7.  
  8. // Process -> Output
  9. cout << a << ' ';
  10. if (a >= 10 && a <= 100) cout << "is in the range [10, 100]";
  11. else cout << "is not in the range [10, 100]";
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5324KB
stdin
45
stdout
45 is in the range [10, 100]