#include using namespace std; int main() { int x; cout << "Enter an integer = "; cin >> x; if (x % 3 == 0) { if (x % 2 == 0) cout << x + 1; else cout << x + 2; } else if (x % 3 == 1) { if (x % 2 == 0) cout << x + 3; else cout << x + 4; } else { if (x % 2 == 0) cout << x + 5; else cout << x + 6; } cout << endl; return 0; }