#include #include //This program demonstrates multiple ways to determine how two numbers are related to each other //can you think of how to combine the if statements by adding else statements? int main() { int x; int y; // ==, !=, >, <, >=, <=, printf("Enter x and y, using space as a separator: "); scanf("%d %d", &x, &y); //equal to if(x==y) { printf("%d is = %d\n", x, y); } //not equal if(x!=y) { printf("%d is not = %d\n", x, y); } //less than if(xy) { printf("%d is > %d\n", x, y); } //less than or equal to if(x<=y) { printf("%d is either < or = %d\n", x, y); } //greater than or equal to if(x>=y) { printf("%d is either > or = %d\n", x, y); } system("pause"); }