SHARE
TWEET

Untitled

a guest Jan 28th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.      int x;
  8.     cout<< " Please enter the number: " ;
  9.     cin>>x;
  10.  
  11.      if (x >= 10 && x<=50)
  12.      {
  13.          cout<<"The number is between 10-50" <<endl;
  14.      }
  15.      else if (x>=100 && x<=150)
  16.      {
  17.          cout<<"The number is between 100-150" <<endl ;
  18.      }
  19.  
  20.      else {cout << "The number is not in the range" <<endl;}
  21.  
  22.      return 0;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top