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