Showing
1 changed file
with
6 additions
and
2 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; |
7 | - cin >> echo; | 8 | + do { |
8 | - cout << echo; | 9 | + cout << "if you enter 'exit', the program will exit" |
10 | + cin >> 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