Showing
1 changed file
with
5 additions
and
0 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 | + do { | ||
| 7 | + cout << "if you want to exit, enter exit" | ||
| 6 | string echo; | 8 | string echo; |
| 7 | cin >> echo; | 9 | cin >> echo; |
| 8 | cout << 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