Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -4,8 +4,11 @@ using namespace std; | ... | @@ -4,8 +4,11 @@ using namespace std; |
4 | 4 | ||
5 | int main() { | 5 | int main() { |
6 | string input; | 6 | string input; |
7 | + while (true) { | ||
7 | cin >> input; | 8 | cin >> input; |
9 | + if (input == "exit") | ||
10 | + exit(100); | ||
8 | cout << input << "\n"; | 11 | cout << input << "\n"; |
9 | - | 12 | + } |
10 | return 0; | 13 | return 0; |
11 | } | 14 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment