/* week 4 source code */ // Talkie the Toaster // this program demonstrates the use of a conditional #include #include #include using namespace std; int main() { char answer; cout << "Would you like some toast? (y/n) "; answer = getch(); // handle the possible responses if (answer == 'y') { cout << "OK!\n"; } else { cout << "How about a muffin?\n"; } return 0; }