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