Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- cout<< " Please enter the number: " ;
- cin>>x;
- if (x >= 10 && x<=50)
- {
- cout<<"The number is between 10-50" <<endl;
- }
- else if (x>=100 && x<=150)
- {
- cout<<"The number is between 100-150" <<endl ;
- }
- else {cout << "The number is not in the range" <<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement