cs161AWinter2024/whileCin1.cpp

13 lines
212 B
C++

#include <iostream>
using namespace std;
int main(){
string input = "";
while(input != "chicken"){
cout << "Say the magic word: ";
cin >> input;
}
cout << "You said it!" << endl;
return 0;
}