#include #include #include using namespace std; int main() { srand(time(0)); int x = rand() % 10 + 1; cout << "x = "<< x << endl; if (x > 6) // big { if (x % 2 == 0) // even { if (x % 3 == 0) // multiple of 3 { cout << "big even multiple of 3\n"; } else // not a multiple of 3 { cout << "big even not a multiple of 3\n"; } } else // odd { if (x % 3 == 0) // multiple of 3 { cout << "big odd multiple of 3\n"; } else // not a multiple of 3 { cout << "big odd not a multiple of 3\n"; } } } else // small { if (x % 2 == 0) // even { if (x % 3 == 0) // multiple of 3 { cout << "small even multiple of 3\n"; } else // not a multiple of 3 { cout << "small even not a multiple of 3\n"; } } else // odd { if (x % 3 == 0) // multiple of 3 { cout << "small odd multiple of 3\n"; } else // not a multiple of 3 { cout << "small odd not a multiple of 3\n"; } } } }