//nest1.cpp, nested ifs #include using namespace std; int main() { int temp; char ans; cout << "What is the temperature? "; cin >> temp; cout << "Is it a weekend (y/n): "; cin >> ans; if (((ans == 'y') || (ans == 'Y'))) //weekend { cout << "wear black dress." << endl; } else //weekday { if (temp > 70) cout << "Wear t-shirt."<< endl; else cout << "Wear sweater" << endl; } return 0; }