This phrase means that x = kyz where k is some constant.
Chat with our AI personalities
z = 8/3.
If x = y and y = z then x = z
#include <iostream> using namespace std; int main() { int x, y, z; cout << "Enter 3 numbers: \n"; cin >> x; cin >> y; cin >> z; if(x < y && x < z) { cout << x << " "; if(y < z) { cout << y << " " << z; } else if(z < y) { cout << z << " " << y; } } else if(y < x && y < z) { cout << y << " "; if(x < z) { cout << x << " " << z; } else if(z < x) { cout << z << " " << x; } } else if(z < y && z < x) { cout << z << " "; if(y < x) { cout << y << " " << x; } else if(x < y) { cout << x << " " << y; } } char wait; cin >> wait; return 0; }
3 out of 4. 8 possiableaties------------------ coins 1--- 2--- 3--- 4--- 5--- 6--- 7--- 8 x y--- x--- x--- x--- x--- y--- y---- y--- y x z--- x--- x--- z--- z--- x--- x----z--- z y z--- y----z---y--- z--- y--- z----y-----z There are 8 possiabilities for the three coins to land, you count the matches, there 6 out of 8 that match.
(x + y)/z = x/z + y/z where z is non-zero.