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