#include #include //This program shows one way to combine the if blocks to eliminate redundancy int main() { int x; int y; printf("Enter x and y, using space as a separator: "); scanf("%d %d", &x, &y); if(x<=y) { printf("%d is either < or = %d; checking:\n", x, y); if(x=y) //greater than or equal to { printf("%d is either > or = %d; checking:\n", x, y); if(x>y) //greater than { printf("%d is > %d\n", x, y); } else //(x == y) //equal to { printf("%d is = %d\n", x, y); } } system("pause"); }