박주영

add exit

Showing 1 changed file with 2 additions and 0 deletions
......@@ -6,6 +6,8 @@ int main() {
string s1;
cout << "Input string: ";
cin >> s1;
if (s1 == "exit")
return 0;
cout << s1 << endl;
return 0;
}
\ No newline at end of file
......