Z1woo

echo program

Showing 1 changed file with 5 additions and 2 deletions
...@@ -7,9 +7,12 @@ using namespace std; ...@@ -7,9 +7,12 @@ using namespace std;
7 int main(){ 7 int main(){
8 string echo; 8 string echo;
9 cout << "Please enter some text:\n"; 9 cout << "Please enter some text:\n";
10 - cin >> echo;
11 - cout << echo;
12 10
11 + while (true) {
12 + cin >> echo;
13 + cout << echo << '\n';
14 + }
15 +
13 return 0; 16 return 0;
14 } 17 }
15 18
......