Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int num1;
- int num2;
- int num3;
- cout << "Enter an integers: ";
- cin >> num1;
- cout << endl;
- cout << "Enter an integers: ";
- cin >> num2;
- cout << endl;
- cout << "Enter an integers: ";
- cin >> num3;
- cout << endl;
- if (num1 <= num2 && num3)
- cout << "This number is smallest: " << num1 << endl;
- else if (num2 <= num1 && num3)
- cout << "This number is smallest: " << num2 << endl;
- else
- (num3 <= num1 && num2);
- cout << "This number is smallest: " << num3 << endl;
- if (num1 >= num2 && num1 <= num3)
- cout << "This number is in between: " << num1 << endl;
- else if (num2 >= num3 && num2 <= num1)
- cout << "This number is in between: " << num2 << endl;
- else
- (num3 >= num1 && num3 <= num2);
- cout << "This number is in between: " << num3 << endl;
- if (num1 >= num2 && num3)
- cout << "This number is largest: " << num1 << endl;
- else if (num2 >= num1 && num3)
- cout << "This number is largest: " << num2 << endl;
- else if (num3 >= num1 && num2)
- cout << "This number is largest: " << num3 << endl;
- else
- cout << "They are equal." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement