박주영

add exit

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