Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- int number;
- cout << "Enter a number between 100 and 500: ";
- cin >> number;
- if (number >= 100 && number <= 500) {
- cout << number;
- }
- else {
- cout << "That number is not between 100 and 500!";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement