홍준섭

exit function added

Showing 1 changed file with 3 additions and 0 deletions
...@@ -8,7 +8,10 @@ int main() ...@@ -8,7 +8,10 @@ int main()
8 while (1) 8 while (1)
9 { 9 {
10 cin >> str; 10 cin >> str;
11 + if (str == "exit")
12 + break;
11 cout << str << endl; 13 cout << str << endl;
14 +
12 } 15 }
13 16
14 return 0; 17 return 0;
......