Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement