fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int max1 = 40;
  8. int min1 = 20;
  9. int n;
  10. int x = 0;
  11. int y = 1;
  12.  
  13.  
  14. cin >> n;
  15.  
  16.  
  17. if ( n < min1 || n > max1)
  18. {
  19. cout << y << endl;
  20. }
  21. else
  22. {
  23. cout << x << endl;
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  
  30. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
1