Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double x, y, z;
- cout << "Input X: ";
- cin >> x;
- cout << "Input Y: ";
- cin >> y;
- cout << "Input Z: ";
- cin >> z;
- if ((x > y) && (x > z))
- {
- cout << "X have the biggest value: " << x;
- }
- else if ((y > x) && (y > z))
- {
- cout << "Y have the biggest value: " << y;
- }
- else if ((z > x) && (z > y))
- {
- cout << "Z have the biggest value: " << z;
- }
- else
- {
- cout << "ALL VALUES ARE EQUAL";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement